[PATCH] user32: Make GetRegisteredRawInputDevices hotpatchable.

Stefan Dösinger stefan at codeweavers.com
Wed Jul 30 15:45:20 CDT 2014


Steam tries to hook this function and crashes without DECLSPEC_HOTPATCH.
See http://bugs.winehq.org/show_bug.cgi?id=35361#c48 .
---
 dlls/user32/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index 457e67c..ec81e60 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -696,7 +696,7 @@ UINT WINAPI GetRawInputDeviceInfoW(HANDLE device, UINT command, void *data, UINT
 /******************************************************************
 *		GetRegisteredRawInputDevices (USER32.@)
 */
-UINT WINAPI GetRegisteredRawInputDevices(PRAWINPUTDEVICE pRawInputDevices, PUINT puiNumDevices, UINT cbSize)
+UINT WINAPI DECLSPEC_HOTPATCH GetRegisteredRawInputDevices(PRAWINPUTDEVICE pRawInputDevices, PUINT puiNumDevices, UINT cbSize)
 {
     FIXME("(pRawInputDevices=%p, puiNumDevices=%p, cbSize=%d) stub!\n", pRawInputDevices, puiNumDevices, cbSize);
 
-- 
1.8.5.5




More information about the wine-patches mailing list