From a12dab77916944ce452ccb199ad4a78d10a8f281 Mon Sep 17 00:00:00 2001 From: "pedemont%us.ibm.com" Date: Wed, 16 Aug 2006 16:13:23 +0000 Subject: [PATCH] Bug 348732 - getGREPathWithProperties() fails if temp path has spaces. XULRunner only. Patch by Dominik, r=jhpedemonte. git-svn-id: svn://10.0.0.236/trunk@207594 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/java/xpcom/interfaces/Mozilla.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/java/xpcom/interfaces/Mozilla.java b/mozilla/extensions/java/xpcom/interfaces/Mozilla.java index 6803f110a71..aa35939c336 100644 --- a/mozilla/extensions/java/xpcom/interfaces/Mozilla.java +++ b/mozilla/extensions/java/xpcom/interfaces/Mozilla.java @@ -295,8 +295,8 @@ public class Mozilla implements IGRE, IXPCOM, IXPCOMError { Process proc; try { - proc = Runtime.getRuntime().exec("regedit /e " + tempFile.getPath() + - " \"" + aRegKey + "\""); + proc = Runtime.getRuntime().exec("regedit /e " + "\"" + tempFile.getPath() + + "\" \"" + aRegKey + "\""); proc.waitFor(); } catch (Exception e) { // Failed to run regedit.exe. Length of temp file is zero, and that's