mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:45:49 +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);
|
rc = RegQueryValueExW(hGroupOrderListKey, lpLoadOrderGroup, NULL, &dwRegType, NULL, &bufferSize);
|
||||||
if (rc == ERROR_FILE_NOT_FOUND)
|
if (rc == ERROR_FILE_NOT_FOUND)
|
||||||
bufferSize = 0;
|
bufferSize = sizeof(DWORD);
|
||||||
else if (rc != ERROR_SUCCESS)
|
else if (rc != ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
SetLastError(rc);
|
SetLastError(rc);
|
||||||
|
@ -1246,10 +1246,17 @@ BOOL WINAPI SetupInstallServicesFromInfSectionExW( HINF hinf, PCWSTR sectionname
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (flags & SPSVCINST_TAGTOFRONT)
|
|
||||||
GroupOrder[0] = tagId;
|
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
GroupOrder[0] = 0;
|
||||||
|
}
|
||||||
|
if (flags & SPSVCINST_TAGTOFRONT)
|
||||||
|
GroupOrder[1] = tagId;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GroupOrder[0]++;
|
||||||
GroupOrder[bufferSize / sizeof(DWORD)] = tagId;
|
GroupOrder[bufferSize / sizeof(DWORD)] = tagId;
|
||||||
|
}
|
||||||
|
|
||||||
rc = RegSetValueExW(
|
rc = RegSetValueExW(
|
||||||
hGroupOrderListKey,
|
hGroupOrderListKey,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue