[SETUPAPI]
[reactos.git] / reactos / dll / win32 / setupapi / devinst.c
index e2e7fd0..c090132 100644 (file)
@@ -5471,7 +5471,7 @@ SetupDiInstallDevice(
             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