mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
dbgprint and shutdown should be in PATH
svn path=/trunk/; revision=35931
This commit is contained in:
parent
649ee830ed
commit
f26bc8dd86
|
@ -2217,22 +2217,9 @@ ProcessUnattendInf(HINF hUnattendedInf)
|
||||||
(const BYTE*)szPath,
|
(const BYTE*)szPath,
|
||||||
strlen(szPath) * sizeof(char));
|
strlen(szPath) * sizeof(char));
|
||||||
|
|
||||||
if (GetSystemDirectoryA(szPath, MAX_PATH))
|
fprintf(file, "dbgprint --winetest %windir%\\bin\\version_winetest.exe\n");
|
||||||
{
|
fprintf(file, "dbgprint SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
|
||||||
UINT length = strlen(szPath);
|
fprintf(file, "shutdown -s\n");
|
||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
}
|
}
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
|
|
Loading…
Reference in a new issue