setupapi: SetupDiCreateDeviceInfoListEx returns INVALID_HANDLE_VALUE on error.

This commit is contained in:
Dmitry Timoshkov 2015-07-22 17:57:19 +08:00 committed by Alexandre Julliard
parent afa912b4f2
commit ab92627e19

View file

@ -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",