mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 00:54:40 +00:00
The GroupOrder registry value should start with a ULONG containing the number
of entries following it. svn path=/trunk/; revision=19150
This commit is contained in:
parent
0303a440e3
commit
b4b9ed3504
1 changed files with 10 additions and 3 deletions
|
@ -1212,7 +1212,7 @@ BOOL WINAPI SetupInstallServicesFromInfSectionExW( HINF hinf, PCWSTR sectionname
|
|||
}
|
||||
rc = RegQueryValueExW(hGroupOrderListKey, lpLoadOrderGroup, NULL, &dwRegType, NULL, &bufferSize);
|
||||
if (rc == ERROR_FILE_NOT_FOUND)
|
||||
bufferSize = 0;
|
||||
bufferSize = sizeof(DWORD);
|
||||
else if (rc != ERROR_SUCCESS)
|
||||
{
|
||||
SetLastError(rc);
|
||||
|
@ -1246,10 +1246,17 @@ BOOL WINAPI SetupInstallServicesFromInfSectionExW( HINF hinf, PCWSTR sectionname
|
|||
goto cleanup;
|
||||
}
|
||||
}
|
||||
if (flags & SPSVCINST_TAGTOFRONT)
|
||||
GroupOrder[0] = tagId;
|
||||
else
|
||||
{
|
||||
GroupOrder[0] = 0;
|
||||
}
|
||||
if (flags & SPSVCINST_TAGTOFRONT)
|
||||
GroupOrder[1] = tagId;
|
||||
else
|
||||
{
|
||||
GroupOrder[0]++;
|
||||
GroupOrder[bufferSize / sizeof(DWORD)] = tagId;
|
||||
}
|
||||
|
||||
rc = RegSetValueExW(
|
||||
hGroupOrderListKey,
|
||||
|
|
Loading…
Reference in a new issue