- Add DPRINTs to track possible unattended setup timeouts

svn path=/trunk/; revision=54972
This commit is contained in:
Rafal Harabien 2012-01-15 13:37:25 +00:00
parent cb74343620
commit fedd178564
4 changed files with 17 additions and 15 deletions

View file

@ -28,7 +28,8 @@ add_importlibs(intl
advapi32
setupapi
shell32
kernel32)
kernel32
ntdll)
add_pch(intl intl.h)
add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all)

View file

@ -331,7 +331,8 @@ GeneralPageProc(HWND hwndDlg,
{
SetNewLocale(UnattendLCID);
PostQuitMessage(0);
}
} else
DPRINT1("VerifyUnattendLCID failed\n");
return TRUE;
}
break;

View file

@ -67,29 +67,26 @@ OpenSetupInf(VOID)
lpCmdLine = GetCommandLine();
lpSwitch = _tcsstr(lpCmdLine, _T("/f:\""));
if(!lpSwitch)
{
if (!lpSwitch)
return FALSE;
}
len = _tcslen(lpSwitch);
if (len < 5)
{
return FALSE;
}
if(lpSwitch[len-1] != _T('\"'))
if (len < 5 || lpSwitch[len-1] != _T('\"'))
{
DPRINT1("Invalid switch: %ls\n", lpSwitch);
return FALSE;
}
lpSwitch[len-1] = _T('\0');
hSetupInf = SetupOpenInfFile(&lpSwitch[4], NULL,
INF_STYLE_OLDNT, NULL);
hSetupInf = SetupOpenInfFile(&lpSwitch[4], NULL, INF_STYLE_OLDNT, NULL);
if (hSetupInf == INVALID_HANDLE_VALUE)
{
DPRINT1("Failed to open INF file: %ls\n", &lpSwitch[4]);
return FALSE;
}
return (hSetupInf != INVALID_HANDLE_VALUE);
return TRUE;
}
VOID
@ -104,6 +101,7 @@ ParseSetupInf(VOID)
&InfContext))
{
SetupCloseInfFile(hSetupInf);
DPRINT1("SetupFindFirstLine failed\n");
return;
}
@ -111,6 +109,7 @@ ParseSetupInf(VOID)
sizeof(szBuffer) / sizeof(TCHAR), NULL))
{
SetupCloseInfFile(hSetupInf);
DPRINT1("SetupGetStringField failed\n");
return;
}

View file

@ -7,6 +7,7 @@
#include <tchar.h>
#include <prsht.h>
#include <malloc.h>
#include <debug.h>
#include "resource.h"