mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 15:52:36 +00:00
[INTL]
- Add DPRINTs to track possible unattended setup timeouts svn path=/trunk/; revision=54972
This commit is contained in:
parent
cb74343620
commit
fedd178564
4 changed files with 17 additions and 15 deletions
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue