From 4637b607b2477f3c8b71724c3dbafe11e3decf17 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Sun, 13 Apr 2014 18:34:08 -0500 Subject: [PATCH] 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 e26ee05e71e..e5a6034c4ba 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;