[SETUPAPI]
authorThomas Faber <thomas.faber@reactos.org>
Thu, 6 Oct 2011 22:33:06 +0000 (22:33 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Thu, 6 Oct 2011 22:33:06 +0000 (22:33 +0000)
- Do not fail in SetupDiInstallDevice if the inf file already exists. Fixes VirtualBox 4.1.x additions
See issue #6522 for more details.

svn path=/trunk/; revision=54037

reactos/dll/win32/setupapi/devinst.c

index e2e7fd0..c090132 100644 (file)
@@ -5471,7 +5471,7 @@ SetupDiInstallDevice(
             NewFileName, MAX_PATH,
             NULL,
             NULL);
             NewFileName, MAX_PATH,
             NULL,
             NULL);
-        if (!Result)
+        if (!Result && GetLastError() != ERROR_FILE_EXISTS)
             goto cleanup;
         /* Create a new struct InfFileDetails, and set it to
          * SelectedDriver->InfFileDetails, to release use of
             goto cleanup;
         /* Create a new struct InfFileDetails, and set it to
          * SelectedDriver->InfFileDetails, to release use of