Dmitry Timoshkov : setupapi: SetupDiCreateDeviceInfoListEx returns INVALID_HANDLE_VALUE on error.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 29 15:40:46 CDT 2015


Module: wine
Branch: master
Commit: ab92627e19f10d7ad23abb101b21ec7bd122628c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ab92627e19f10d7ad23abb101b21ec7bd122628c

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Wed Jul 22 17:57:19 2015 +0800

setupapi: SetupDiCreateDeviceInfoListEx returns INVALID_HANDLE_VALUE on error.

---

 dlls/setupapi/devinst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index 5a18937..318dcdf 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -2348,7 +2348,7 @@ HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR enumstr, HWND p
         set = deviceset;
     else
         set = SetupDiCreateDeviceInfoListExW(class, parent, machine, reserved);
-    if (set)
+    if (set != INVALID_HANDLE_VALUE)
     {
         if (machine && *machine)
             FIXME("%s: unimplemented for remote machines\n",




More information about the wine-cvs mailing list