dbgprint and shutdown should be in PATH

svn path=/trunk/; revision=35931
This commit is contained in:
Christoph von Wittich 2008-09-04 11:35:27 +00:00
parent 649ee830ed
commit f26bc8dd86

View file

@ -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);