[SETUPAPI] SetupDiInstallDevice: Do not fail if the .inf file does not have a .Servic...
authorEric Kohl <eric.kohl@reactos.org>
Wed, 7 Apr 2021 19:39:55 +0000 (21:39 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Wed, 7 Apr 2021 19:39:55 +0000 (21:39 +0200)
CORE-17530

dll/win32/setupapi/devinst.c

index d629e13..082be95 100644 (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;