From: Stefan Dösinger Subject: [PATCH] user32: Make GetRegisteredRawInputDevices hotpatchable. Message-Id: <1406753120-6168-1-git-send-email-stefan@codeweavers.com> Date: Wed, 30 Jul 2014 20:45:20 +0000 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