mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
setupapi: Always return an empty list from SetupDiGetClassDevs.
This commit is contained in:
parent
939e8e4ce2
commit
7a039ebbf1
1 changed files with 6 additions and 26 deletions
|
@ -648,7 +648,7 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid,
|
|||
* with this list.
|
||||
* hwndParent [I] hwnd needed for interface related actions.
|
||||
* 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
|
||||
*
|
||||
* RETURNS
|
||||
|
@ -772,6 +772,7 @@ BOOL WINAPI SetupDiEnumDeviceInfo(
|
|||
if(info->cbSize < sizeof(*info))
|
||||
return FALSE;
|
||||
|
||||
SetLastError(ERROR_NO_MORE_ITEMS);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -1008,32 +1009,11 @@ HDEVINFO WINAPI SetupDiGetClassDevsW(
|
|||
HWND parent,
|
||||
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),
|
||||
parent, flags);
|
||||
|
||||
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;
|
||||
/* WinXP always succeeds, returns empty list for unknown classes */
|
||||
FIXME("returning empty list\n");
|
||||
return SetupDiCreateDeviceInfoList(class, parent);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue