xinput1_3: Make XInputGetState patchable.

Vincent Povirk madewokherd at gmail.com
Fri Oct 25 16:21:42 CDT 2013


Steam's overlay patches this.
-------------- next part --------------
From d4dbcc75c7cadd66cf45bba918dcd0e74bc40ecb Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Fri, 25 Oct 2013 16:18:24 -0500
Subject: [PATCH] xinput1_3: Make XInputGetState patchable.

---
 dlls/xinput1_3/xinput1_3_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c
index a2a83dd..63f725b 100644
--- a/dlls/xinput1_3/xinput1_3_main.c
+++ b/dlls/xinput1_3/xinput1_3_main.c
@@ -65,7 +65,7 @@ DWORD WINAPI XInputSetState(DWORD dwUserIndex, XINPUT_VIBRATION* pVibration)
     return ERROR_BAD_ARGUMENTS;
 }
 
-DWORD WINAPI XInputGetState(DWORD dwUserIndex, XINPUT_STATE* pState)
+DWORD WINAPI DECLSPEC_HOTPATCH XInputGetState(DWORD dwUserIndex, XINPUT_STATE* pState)
 {
     static int warn_once;
 
-- 
1.8.1.2


More information about the wine-patches mailing list