mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
dbgprint and shutdown should be in PATH
svn path=/trunk/; revision=35931
This commit is contained in:
parent
649ee830ed
commit
f26bc8dd86
1 changed files with 3 additions and 16 deletions
|
@ -2217,22 +2217,9 @@ ProcessUnattendInf(HINF hUnattendedInf)
|
|||
(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);
|
||||
|
|
Loading…
Reference in a new issue