[ros-diffs] [cwittich] 35931: dbgprint and shutdown should be in PATH
cwittich at svn.reactos.org
cwittich at svn.reactos.org
Thu Sep 4 13:35:28 CEST 2008
Author: cwittich
Date: Thu Sep 4 06:35:27 2008
New Revision: 35931
URL: http://svn.reactos.org/svn/reactos?rev=35931&view=rev
Log:
dbgprint and shutdown should be in PATH
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.c?rev=35931&r1=35930&r2=35931&view=diff
==============================================================================
--- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Thu Sep 4 06:35:27 2008
@@ -2217,22 +2217,9 @@
(const BYTE*)szPath,
strlen(szPath) * sizeof(char));
- if (GetSystemDirectoryA(szPath, MAX_PATH))
- {
- UINT length = strlen(szPath);
-
- if (szPath[length-1] != '\\')
- {
- szPath[length] = '\\';
- length++;
- }
- strcpy(&szPath[length], "dbgprint.exe --winetest %windir%\\bin\\version_winetest.exe\n");
- fwrite(szPath, 1, strlen(szPath) + 1, file);
- strcpy(&szPath[length], "dbgprint.exe SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
- fwrite(szPath, 1, strlen(szPath) + 1, file);
- strcpy(&szPath[length], "shutdown.exe -s");
- fwrite(szPath, 1, strlen(szPath) + 1, file);
- }
+ fprintf(file, "dbgprint --winetest %windir%\\bin\\version_winetest.exe\n");
+ fprintf(file, "dbgprint SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
+ fprintf(file, "shutdown -s\n");
fclose(file);
}
RegCloseKey(hKey);
More information about the Ros-diffs
mailing list