[ros-diffs] [tfaber] 54037: [SETUPAPI] - Do not fail in SetupDiInstallDevice if the inf file already exists. Fixes VirtualBox 4.1.x additions See issue #6522 for more details.
tfaber at svn.reactos.org
tfaber at svn.reactos.org
Thu Oct 6 22:33:06 UTC 2011
Author: tfaber
Date: Thu Oct 6 22:33:06 2011
New Revision: 54037
URL: http://svn.reactos.org/svn/reactos?rev=54037&view=rev
Log:
[SETUPAPI]
- Do not fail in SetupDiInstallDevice if the inf file already exists. Fixes VirtualBox 4.1.x additions
See issue #6522 for more details.
Modified:
trunk/reactos/dll/win32/setupapi/devinst.c
Modified: trunk/reactos/dll/win32/setupapi/devinst.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devinst.c?rev=54037&r1=54036&r2=54037&view=diff
==============================================================================
--- trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] Thu Oct 6 22:33:06 2011
@@ -5471,7 +5471,7 @@
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
More information about the Ros-diffs
mailing list