Author: cgutman
Date: Sun Aug 11 21:19:35 2013
New Revision: 59702
URL:
http://svn.reactos.org/svn/reactos?rev=59702&view=rev
Log:
[SETUPAPI]
- SetupDiRegisterDeviceInfo shouldn't fail if a device instance already exists
- MSDN documentation for this function states: "If [SPRDI_FIND_DUPS] is not
specified, the device instance is registered regardless of whether a device instance
already exists for it."
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] Sun Aug 11 21:19:35 2013
@@ -1911,7 +1911,8 @@
ParentDevInst,
CM_CREATE_DEVINST_NORMAL |
CM_CREATE_DEVINST_DO_NOT_INSTALL,
set->hMachine);
- if (cr != CR_SUCCESS)
+ if (cr != CR_SUCCESS &&
+ cr != CR_ALREADY_SUCH_DEVINST)
{
dwError = ERROR_NO_SUCH_DEVINST;
}