- 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 advapi32
setupapi setupapi
shell32 shell32
kernel32) kernel32
ntdll)
add_pch(intl intl.h) add_pch(intl intl.h)
add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all) add_cd_file(TARGET intl DESTINATION reactos/system32 FOR all)

View file

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

View file

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

View file

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