[SETUPLIB][USETUP] Remove the deprecated GenericListHasSingleEntry() function and use instead GetNumberOfListEntries().

- Few FIXMEs get fixed in the process.
- Add some diagnostic ASSERTs.
This commit is contained in:
Hermès Bélusca-Maïto 2018-01-28 23:14:16 +01:00
parent a635aa8475
commit a972948051
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
5 changed files with 24 additions and 39 deletions

View file

@ -761,10 +761,7 @@ ProcessComputerFiles(
Entry = GetCurrentListEntry(List);
if (Entry == NULL)
{
DPRINT("GetCurrentListEntry() failed\n");
return FALSE;
}
RtlStringCchPrintfW(SectionName, ARRAYSIZE(SectionName),
L"Files.%s", ((PGENENTRY)GetListEntryData(Entry))->Id);
@ -794,10 +791,7 @@ ProcessDisplayRegistry(
Entry = GetCurrentListEntry(List);
if (Entry == NULL)
{
DPRINT1("GetCurrentListEntry() failed\n");
return FALSE;
}
if (!SetupFindFirstLineW(InfFile, L"Display",
((PGENENTRY)GetListEntryData(Entry))->Id,