Author: jgardou
Date: Tue Jun 24 22:19:20 2014
New Revision: 63643

URL: http://svn.reactos.org/svn/reactos?rev=63643&view=rev
Log:
[SETUPAPI]
 - Do not fail on non-existing GUIDs in SetupDiGetClassDevsExW
WinCDemu portable now goes a bit further and permits to load CD images, but no 
new drive letters are affected.

Modified:
    trunk/reactos/dll/win32/setupapi/interface.c

Modified: trunk/reactos/dll/win32/setupapi/interface.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/interface.c?rev=63643&r1=63642&r2=63643&view=diff
==============================================================================
--- trunk/reactos/dll/win32/setupapi/interface.c        [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/interface.c        [iso-8859-1] Tue Jun 24 
22:19:20 2014
@@ -2,7 +2,7 @@
  * SetupAPI interface-related functions
  *
  * Copyright 2000 Andreas Mohr for CodeWeavers
- *           2005-2006 Hervé Poussineau ([email protected])
+ *           2005-2006 Herv� Poussineau ([email protected])
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -97,7 +97,8 @@
     hInterfaceKey = SetupDiOpenClassRegKeyExW(InterfaceGuid, 
KEY_ENUMERATE_SUB_KEYS, DIOCR_INTERFACE, MachineName, NULL);
     if (hInterfaceKey == INVALID_HANDLE_VALUE)
     {
-        rc = GetLastError();
+        /* Key doesn't exist. Let's keep it empty */
+        rc = ERROR_SUCCESS;
         goto cleanup;
     }
 


Reply via email to