[PATCH 5/7] setupapi: Set the list device class to GUID_NULL when enumerating interfaces.
Zebediah Figura
z.figura12 at gmail.com
Mon May 27 22:13:18 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
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 2f490f0978f..4b576e2db56 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -2456,7 +2456,7 @@ HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR enumstr, HWND p
if (deviceset)
set = deviceset;
else
- set = SetupDiCreateDeviceInfoListExW(class, parent, machine, reserved);
+ set = SetupDiCreateDeviceInfoListExW((flags & DIGCF_DEVICEINTERFACE) ? NULL : class, parent, machine, reserved);
if (set != INVALID_HANDLE_VALUE)
{
if (machine && *machine)
--
2.21.0
More information about the wine-devel
mailing list