Ken Thomases : dinput: Fix check of wrong result value due to copy/ paste error.
Alexandre Julliard
julliard at winehq.org
Mon Apr 14 14:18:55 CDT 2014
Module: wine
Branch: master
Commit: 4637b607b2477f3c8b71724c3dbafe11e3decf17
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4637b607b2477f3c8b71724c3dbafe11e3decf17
Author: Ken Thomases <ken at 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;
More information about the wine-cvs
mailing list