There was an error while loading. Please reload this page.
1 parent 3150a27 commit 8207cc7Copy full SHA for 8207cc7
1 file changed
PCbuild/make_buildinfo.c
@@ -31,12 +31,13 @@ int make_buildinfo2()
31
RegOpenKey(HKEY_CURRENT_USER, "Software\\TortoiseSVN", &hTortoise) != ERROR_SUCCESS)
32
/* Tortoise not installed */
33
return 0;
34
- size = sizeof(command);
35
- if (RegQueryValueEx(hTortoise, "Directory", 0, &type, command, &size) != ERROR_SUCCESS ||
+ command[0] = '"'; /* quote the path to the executable */
+ size = sizeof(command) - 1;
36
+ if (RegQueryValueEx(hTortoise, "Directory", 0, &type, command+1, &size) != ERROR_SUCCESS ||
37
type != REG_SZ)
38
/* Registry corrupted */
39
- strcat(command, "bin\\subwcrev.exe");
40
+ strcat(command, "bin\\subwcrev.exe\"");
41
if (_stat(command, &st) < 0)
42
/* subwcrev.exe not part of the release */
43
0 commit comments