Author: janderwald
Date: Tue Sep 4 15:03:16 2007
New Revision: 28836
URL:
http://svn.reactos.org/svn/reactos?rev=28836&view=rev
Log:
- silence debug message
- dont hardcode paths in regression testing code
Modified:
trunk/reactos/dll/win32/syssetup/wizard.c
Modified: trunk/reactos/dll/win32/syssetup/wizard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
==============================================================================
--- trunk/reactos/dll/win32/syssetup/wizard.c (original)
+++ trunk/reactos/dll/win32/syssetup/wizard.c Tue Sep 4 15:03:16 2007
@@ -2158,7 +2158,7 @@
}while(SetupFindNextLine(&InfContext, &InfContext));
}
- DPRINT1("BootCDRegtestActive %d\n", BootCDRegtestActive);
+ DPRINT("BootCDRegtestActive %d\n", BootCDRegtestActive);
if (BootCDRegtestActive)
{
char szPath[MAX_PATH];
@@ -2188,12 +2188,21 @@
(const BYTE*)szPath,
strlen(szPath) * sizeof(char));
- strcpy(szPath, "C:\\ReactOS\\bin\\dbgprint.exe
SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
- fwrite(szPath, 1, strlen(szPath) + 1, file);
- strcpy(szPath, "C:\\ReactOS\\system32\\shutdown.exe -s");
- fwrite(szPath, 1, strlen(szPath) + 1, file);
+ if (GetSystemDirectoryA(szPath, MAX_PATH))
+ {
+ UINT length = strlen(szPath);
+
+ if (szPath[length-1] != '\\')
+ {
+ szPath[length] = '\\';
+ length++;
+ }
+ strcpy(&szPath[length], "bin\\dbgprint.exe
SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
+ fwrite(szPath, 1, strlen(szPath) + 1, file);
+ strcpy(&szPath[length], "system32\\shutdown.exe -s");
+ fwrite(szPath, 1, strlen(szPath) + 1, file);
+ }
fclose(file);
-
}
RegCloseKey(hKey);
return TRUE;