Skip to content

Commit

Permalink
Merge pull request #12 from briankendall/fix_exclusive_device
Browse files Browse the repository at this point in the history
Fix for enumerating passed devices that are exclusively owned by another process
  • Loading branch information
shauleiz authored Sep 28, 2016
2 parents 3bf12a0 + 7cbe2e8 commit 76f18ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/common/vJoyInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,7 @@ HANDLE GetHandleByIndex(int index)
LocalFree(functionClassDeviceData);
SetupDiDestroyDeviceInfoList (hardwareDeviceInfo);
CloseHandle(HidDevice);
return NULL;
return INVALID_HANDLE_VALUE;
}


Expand Down

0 comments on commit 76f18ab

Please sign in to comment.