mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[SETUPAPI] SetupDiInstallDevice: Do not fail if the .inf file does not have a .Services section
CORE-17530
This commit is contained in:
parent
4d25869e0e
commit
e4646bc5d1
|
@ -5609,7 +5609,11 @@ SetupDiInstallDevice(
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
if (!Result)
|
if (!Result)
|
||||||
goto cleanup;
|
{
|
||||||
|
if (GetLastError() != ERROR_SECTION_NOT_FOUND)
|
||||||
|
goto cleanup;
|
||||||
|
SetLastError(ERROR_SUCCESS);
|
||||||
|
}
|
||||||
if (GetLastError() == ERROR_SUCCESS_REBOOT_REQUIRED)
|
if (GetLastError() == ERROR_SUCCESS_REBOOT_REQUIRED)
|
||||||
RebootRequired = TRUE;
|
RebootRequired = TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue