From d11edd7453a53ae289f9b3e78b20e1fc9f55a475 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Tue, 24 Jun 2014 22:19:20 +0000 Subject: [PATCH] [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. svn path=/trunk/; revision=63643 --- reactos/dll/win32/setupapi/interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/setupapi/interface.c b/reactos/dll/win32/setupapi/interface.c index 32c8aa0b0a8..deaadd9a8cb 100644 --- a/reactos/dll/win32/setupapi/interface.c +++ b/reactos/dll/win32/setupapi/interface.c @@ -2,7 +2,7 @@ * SetupAPI interface-related functions * * Copyright 2000 Andreas Mohr for CodeWeavers - * 2005-2006 Hervé Poussineau (hpoussin@reactos.org) + * 2005-2006 Herv� Poussineau (hpoussin@reactos.org) * * 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 @@ SETUP_CreateInterfaceList( 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; } -- 2.17.1