[PATCH 3/7] setupapi: Treat DIGCF_ALLCLASSES as if a NULL device class was given.
Zebediah Figura
z.figura12 at gmail.com
Mon May 27 22:13:16 CDT 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/setupapi/devinst.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index 877286e2aae..2f490f0978f 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -2448,6 +2448,9 @@ HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *class, PCWSTR enumstr, HWND p
SetLastError(ERROR_INVALID_PARAMETER);
return INVALID_HANDLE_VALUE;
}
+ if (flags & DIGCF_ALLCLASSES)
+ class = NULL;
+
if (flags & unsupportedFlags)
WARN("unsupported flags %08x\n", flags & unsupportedFlags);
if (deviceset)
--
2.21.0
More information about the wine-devel
mailing list