dinput: Fix check of wrong result value due to copy/paste error.

This commit is contained in:
Ken Thomases 2014-04-13 18:34:08 -05:00 committed by Alexandre Julliard
parent d053533444
commit 4637b607b2
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static HRESULT get_ff(IOHIDDeviceRef device, FFDeviceObjectReference *ret)
}
location_id = IOHIDDeviceGetProperty(device, CFSTR(kIOHIDLocationIDKey));
if(!matching){
if(!location_id){
CFRelease(matching);
WARN("IOHIDDeviceGetProperty failed, force feedback disabled\n");
return DIERR_DEVICENOTREG;