Fixed product name detection on Windows.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 09 Jan 2010 13:52:18 -0500
changeset 90 9a58c431a667
parent 89 b2f03b6d99aa
child 91 f288663ca8e3
Fixed product name detection on Windows.
windows_wminput.c
--- a/windows_wminput.c	Sat Jan 09 13:49:41 2010 -0500
+++ b/windows_wminput.c	Sat Jan 09 13:52:18 2010 -0500
@@ -447,7 +447,7 @@
                                      size_t namesize)
 {
     SP_DEVINFO_DATA devdata;
-    const DWORD flags = DIGCF_PRESENT;
+    const DWORD flags = DIGCF_ALLCLASSES | DIGCF_PRESENT;
     HDEVINFO devinfo = pSetupDiGetClassDevsA(NULL, devinstance, NULL, flags);
     if (devinfo == INVALID_HANDLE_VALUE)
         return;