Zebediah Figura : setupapi: Treat DIGCF_ALLCLASSES as if a NULL device class was given.
Alexandre Julliard
julliard at winehq.org
Tue May 28 15:06:49 CDT 2019
Module: wine
Branch: master
Commit: 5ff5c7036ef028d9541b6407eeca05e37667cc84
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5ff5c7036ef028d9541b6407eeca05e37667cc84
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Mon May 27 22:13:16 2019 -0500
setupapi: Treat DIGCF_ALLCLASSES as if a NULL device class was given.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/setupapi/devinst.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index 0279d10..3b58513 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)
More information about the wine-cvs
mailing list