[SETUPAPI]

- 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
This commit is contained in:
Thomas Faber 2011-10-06 22:33:06 +00:00
parent d604269b40
commit 9bcb3b3a2e

View 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