mirror of https://github.com/PCSX2/pcsx2.git
LilyPad: Oops.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1014 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
1d2ae02c97
commit
5fb6505e9d
|
@ -250,7 +250,7 @@ int InitializeRawInput() {
|
|||
|
||||
void EnumRawInputDevices() {
|
||||
int count = 0;
|
||||
if (InitializeRawInput() && pGetRawInputDeviceList(0, (unsigned int*)&count, sizeof(RAWINPUTDEVICELIST)) && count > 0) {
|
||||
if (InitializeRawInput() && pGetRawInputDeviceList(0, (unsigned int*)&count, sizeof(RAWINPUTDEVICELIST)) != (UINT)-1 && count > 0) {
|
||||
wchar_t *instanceID = (wchar_t *) malloc(41000*sizeof(wchar_t));
|
||||
wchar_t *keyName = instanceID + 11000;
|
||||
wchar_t *displayName = keyName + 10000;
|
||||
|
|
Loading…
Reference in New Issue