setupapi: SetupDiGetClassDevsEx returns INVALID_HANDLE_VALUE on error.

This commit is contained in:
Dmitry Timoshkov 2015-07-22 17:57:14 +08:00 committed by Alexandre Julliard
parent 14650b939c
commit afa912b4f2
1 changed files with 1 additions and 1 deletions

View File

@ -2340,7 +2340,7 @@ HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR enumstr, HWND p
if (!(flags & DIGCF_ALLCLASSES) && !class)
{
SetLastError(ERROR_INVALID_PARAMETER);
return NULL;
return INVALID_HANDLE_VALUE;
}
if (flags & unsupportedFlags)
WARN("unsupported flags %08x\n", flags & unsupportedFlags);