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.... ============================================================================== --- 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