mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 09:36:33 +00:00
- silence debug message
- dont hardcode paths in regression testing code svn path=/trunk/; revision=28836
This commit is contained in:
parent
c99304bb69
commit
9187115f22
1 changed files with 15 additions and 6 deletions
|
@ -2158,7 +2158,7 @@ ProcessUnattendInf(HINF hUnattendedInf)
|
||||||
}while(SetupFindNextLine(&InfContext, &InfContext));
|
}while(SetupFindNextLine(&InfContext, &InfContext));
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("BootCDRegtestActive %d\n", BootCDRegtestActive);
|
DPRINT("BootCDRegtestActive %d\n", BootCDRegtestActive);
|
||||||
if (BootCDRegtestActive)
|
if (BootCDRegtestActive)
|
||||||
{
|
{
|
||||||
char szPath[MAX_PATH];
|
char szPath[MAX_PATH];
|
||||||
|
@ -2188,12 +2188,21 @@ ProcessUnattendInf(HINF hUnattendedInf)
|
||||||
(const BYTE*)szPath,
|
(const BYTE*)szPath,
|
||||||
strlen(szPath) * sizeof(char));
|
strlen(szPath) * sizeof(char));
|
||||||
|
|
||||||
strcpy(szPath, "C:\\ReactOS\\bin\\dbgprint.exe SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
|
if (GetSystemDirectoryA(szPath, MAX_PATH))
|
||||||
fwrite(szPath, 1, strlen(szPath) + 1, file);
|
{
|
||||||
strcpy(szPath, "C:\\ReactOS\\system32\\shutdown.exe -s");
|
UINT length = strlen(szPath);
|
||||||
fwrite(szPath, 1, strlen(szPath) + 1, file);
|
|
||||||
fclose(file);
|
|
||||||
|
|
||||||
|
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);
|
RegCloseKey(hKey);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue