From f26bc8dd86c3ebb5abff5eae140f32680024a88f Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 4 Sep 2008 11:35:27 +0000 Subject: [PATCH] dbgprint and shutdown should be in PATH svn path=/trunk/; revision=35931 --- reactos/dll/win32/syssetup/wizard.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/reactos/dll/win32/syssetup/wizard.c b/reactos/dll/win32/syssetup/wizard.c index c55fdcd04b2..5f03bcab1e3 100644 --- a/reactos/dll/win32/syssetup/wizard.c +++ b/reactos/dll/win32/syssetup/wizard.c @@ -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);