https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e4646bc5d14b322d1e5bd…
commit e4646bc5d14b322d1e5bd4ffa599d455addbb9f5
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Wed Apr 7 21:39:55 2021 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Wed Apr 7 21:39:55 2021 +0200
[SETUPAPI] SetupDiInstallDevice: Do not fail if the .inf file does not have a
.Services section
CORE-17530
---
dll/win32/setupapi/devinst.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dll/win32/setupapi/devinst.c b/dll/win32/setupapi/devinst.c
index d629e138f1d..082be95386e 100644
--- a/dll/win32/setupapi/devinst.c
+++ b/dll/win32/setupapi/devinst.c
@@ -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;