зеркало из https://github.com/mozilla/gecko-dev.git
Bug 348732 - getGREPathWithProperties() fails if temp path has spaces. XULRunner only. Patch by Dominik, r=jhpedemonte.
This commit is contained in:
Родитель
1a4500cace
Коммит
a1d77a1b40
|
@ -295,8 +295,8 @@ public class Mozilla implements IGRE, IXPCOM, IXPCOMError {
|
||||||
|
|
||||||
Process proc;
|
Process proc;
|
||||||
try {
|
try {
|
||||||
proc = Runtime.getRuntime().exec("regedit /e " + tempFile.getPath() +
|
proc = Runtime.getRuntime().exec("regedit /e " + "\"" + tempFile.getPath()
|
||||||
" \"" + aRegKey + "\"");
|
+ "\" \"" + aRegKey + "\"");
|
||||||
proc.waitFor();
|
proc.waitFor();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// Failed to run regedit.exe. Length of temp file is zero, and that's
|
// Failed to run regedit.exe. Length of temp file is zero, and that's
|
||||||
|
|
Загрузка…
Ссылка в новой задаче