Added xinput1_3-XInputSetState patchset

This commit is contained in:
Alistair Leslie-Hughes
2018-10-17 10:25:14 +11:00
parent f5d03d51d3
commit 803ed475af
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
From 29bf6ebc75921647868d65f2eb851f00cf8f6401 Mon Sep 17 00:00:00 2001
From: Beren Minor <beren.minor+git@gmail.com>
Date: Mon, 15 Oct 2018 02:36:14 +0200
Subject: [PATCH] xinput1_3: Report SUCCESS from XInputSetState when FFB isn't
available.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45992
---
dlls/xinput1_3/hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/xinput1_3/hid.c b/dlls/xinput1_3/hid.c
index 8a35443..7883352 100644
--- a/dlls/xinput1_3/hid.c
+++ b/dlls/xinput1_3/hid.c
@@ -460,7 +460,7 @@ DWORD HID_set_state(xinput_controller* device, XINPUT_VIBRATION* state)
return ERROR_SUCCESS;
}
- return ERROR_NOT_SUPPORTED;
+ return ERROR_SUCCESS;
}
void HID_enable(xinput_controller* device, BOOL enable)
--
1.9.1

View File

@@ -0,0 +1 @@
Fixes: [45992] Report SUCCESS from XInputSetState when FFB isn't available.