Module: wine Branch: master Commit: 4637b607b2477f3c8b71724c3dbafe11e3decf17 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4637b607b2477f3c8b71724c3d...
Author: Ken Thomases ken@codeweavers.com Date: Sun Apr 13 18:34:08 2014 -0500
dinput: Fix check of wrong result value due to copy/paste error.
---
dlls/dinput/joystick_osx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dinput/joystick_osx.c b/dlls/dinput/joystick_osx.c index e26ee05..e5a6034 100644 --- a/dlls/dinput/joystick_osx.c +++ b/dlls/dinput/joystick_osx.c @@ -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;