From 90eb093fb06eb2e0f34e216bc81e48e1bd8d9c5e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 9 Jan 2010 13:52:18 -0500 Subject: [PATCH] Fixed product name detection on Windows. --- windows_wminput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows_wminput.c b/windows_wminput.c index a14d832..9231cd3 100644 --- a/windows_wminput.c +++ b/windows_wminput.c @@ -447,7 +447,7 @@ static void get_dev_name_by_instance(const char *devinstance, char *name, 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;