Skip to content

Commit

Permalink
Fixed device name detection on Windows XP.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 13, 2010
1 parent 654bdf2 commit e455e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows_wminput.c
Expand Up @@ -448,7 +448,7 @@ static void get_dev_name_by_instance(const char *devinstance, char *name,
{
SP_DEVINFO_DATA devdata;
const DWORD flags = DIGCF_ALLCLASSES | DIGCF_PRESENT;
HDEVINFO devinfo = pSetupDiGetClassDevsA(NULL, devinstance, NULL, flags);
HDEVINFO devinfo = pSetupDiGetClassDevsA(NULL, NULL, NULL, flags);
if (devinfo == INVALID_HANDLE_VALUE)
return;

Expand Down

0 comments on commit e455e54

Please sign in to comment.