[SETUPAPI] SetupDiInstallDevice: Do not fail if the .inf file does not have a .Services section

CORE-17530
This commit is contained in:
Eric Kohl 2021-04-07 21:39:55 +02:00
parent 4d25869e0e
commit e4646bc5d1

View file

@ -5609,7 +5609,11 @@ SetupDiInstallDevice(
NULL,
NULL);
if (!Result)
goto cleanup;
{
if (GetLastError() != ERROR_SECTION_NOT_FOUND)
goto cleanup;
SetLastError(ERROR_SUCCESS);
}
if (GetLastError() == ERROR_SUCCESS_REBOOT_REQUIRED)
RebootRequired = TRUE;