mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
Copy file from trunk. Only formatting fixes.
svn path=/branches/ros-amd64-bringup/; revision=44586
This commit is contained in:
@@ -1021,7 +1021,7 @@ void LoadSetupData()
|
||||
&LineLength);
|
||||
++Count;
|
||||
}
|
||||
while (SetupFindNextLine(&InfContext, &InfContext) && Count < SetupData.LangCount);
|
||||
while (SetupFindNextLine(&InfContext, &InfContext) && Count < SetupData.LangCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1094,52 +1094,52 @@ void LoadSetupData()
|
||||
|
||||
// get install directory
|
||||
if (SetupFindFirstLine(hTxtsetupSif, _T("SetupData"), _T("DefaultPath"), &InfContext))
|
||||
{
|
||||
SetupGetStringField(&InfContext,
|
||||
1,
|
||||
{
|
||||
SetupGetStringField(&InfContext,
|
||||
1,
|
||||
SetupData.InstallDir,
|
||||
sizeof(SetupData.InstallDir) / sizeof(TCHAR),
|
||||
&LineLength);
|
||||
}
|
||||
&LineLength);
|
||||
}
|
||||
SetupCloseInfFile(hTxtsetupSif);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LONG LoadGenentry(HINF hinf,PCTSTR name,PGENENTRY gen,PINFCONTEXT context)
|
||||
{
|
||||
{
|
||||
LONG TotalCount;
|
||||
|
||||
TotalCount = SetupGetLineCount(hinf, name);
|
||||
if (TotalCount > 0)
|
||||
{
|
||||
{
|
||||
gen = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(GENENTRY) * TotalCount);
|
||||
if (gen != NULL)
|
||||
{
|
||||
if (SetupFindFirstLine(hinf, name, NULL, context))
|
||||
{
|
||||
LONG Count = 0;
|
||||
do
|
||||
{
|
||||
do
|
||||
{
|
||||
SetupGetStringField(context,
|
||||
0,
|
||||
0,
|
||||
gen[Count].Id,
|
||||
sizeof(gen[Count].Id) / sizeof(TCHAR),
|
||||
NULL);
|
||||
|
||||
SetupGetStringField(context,
|
||||
1,
|
||||
1,
|
||||
gen[Count].Value,
|
||||
sizeof(gen[Count].Value) / sizeof(TCHAR),
|
||||
NULL);
|
||||
Count++;
|
||||
}
|
||||
while (SetupFindNextLine(context, context) && Count < TotalCount);
|
||||
}
|
||||
while (SetupFindNextLine(context, context) && Count < TotalCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return TotalCount;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL isUnattendSetup()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user