dinput: Fix check of wrong result value due to copy/paste error.
This commit is contained in:
parent
d053533444
commit
4637b607b2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue