[PATCH] xinput1_3: Report SUCCESS from XInputSetState when FFB isn't available.

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Tue Nov 13 23:34:59 CST 2018


From: Beren Minor <beren.minor+git at gmail.com>

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45992
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/xinput1_3/hid.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/xinput1_3/hid.c b/dlls/xinput1_3/hid.c
index 8a35443753..d7e22483d4 100644
--- a/dlls/xinput1_3/hid.c
+++ b/dlls/xinput1_3/hid.c
@@ -457,10 +457,9 @@ DWORD HID_set_state(xinput_controller* device, XINPUT_VIBRATION* state)
                 return ERROR_SUCCESS;
             return GetLastError();
         }
-        return ERROR_SUCCESS;
     }
 
-    return ERROR_NOT_SUPPORTED;
+    return ERROR_SUCCESS;
 }
 
 void HID_enable(xinput_controller* device, BOOL enable)
-- 
2.19.1




More information about the wine-devel mailing list