Commit 7a039ebb authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

setupapi: Always return an empty list from SetupDiGetClassDevs.

parent 939e8e4c
...@@ -648,7 +648,7 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid, ...@@ -648,7 +648,7 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid,
* with this list. * with this list.
* hwndParent [I] hwnd needed for interface related actions. * hwndParent [I] hwnd needed for interface related actions.
* MachineName [I] name of machine to create emtpy DeviceInfoSet list, if NULL * MachineName [I] name of machine to create emtpy DeviceInfoSet list, if NULL
* local regestry will be used. * local registry will be used.
* Reserved [I] must be NULL * Reserved [I] must be NULL
* *
* RETURNS * RETURNS
...@@ -772,6 +772,7 @@ BOOL WINAPI SetupDiEnumDeviceInfo( ...@@ -772,6 +772,7 @@ BOOL WINAPI SetupDiEnumDeviceInfo(
if(info->cbSize < sizeof(*info)) if(info->cbSize < sizeof(*info))
return FALSE; return FALSE;
SetLastError(ERROR_NO_MORE_ITEMS);
return FALSE; return FALSE;
} }
...@@ -1008,32 +1009,11 @@ HDEVINFO WINAPI SetupDiGetClassDevsW( ...@@ -1008,32 +1009,11 @@ HDEVINFO WINAPI SetupDiGetClassDevsW(
HWND parent, HWND parent,
DWORD flags) DWORD flags)
{ {
HDEVINFO ret = (HDEVINFO)INVALID_HANDLE_VALUE; TRACE("%s %s %p 0x%08x\n", debugstr_guid(class), debugstr_w(enumstr), parent, flags);
TRACE("%s %s %p 0x%08x\n", debugstr_guid(class), debugstr_w(enumstr), /* WinXP always succeeds, returns empty list for unknown classes */
parent, flags); FIXME("returning empty list\n");
return SetupDiCreateDeviceInfoList(class, parent);
if(flags & DIGCF_DEVICEINTERFACE)
{
if(!class)
SetLastError(ERROR_INVALID_PARAMETER);
else
{
/* WinXP always succeeds, returns empty list for unknown classes */
FIXME(": returning empty list\n");
ret = SetupDiCreateDeviceInfoList(class, parent);
}
}
else if (enumstr)
FIXME(": unimplemented for enumerator strings (%s)\n",
debugstr_w(enumstr));
else if (flags & DIGCF_ALLCLASSES)
FIXME(": unimplemented for DIGCF_ALLCLASSES\n");
else
{
FIXME("(%s): stub\n", debugstr_guid(class));
}
return ret;
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment