You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to set last error when GetRawInputDeviceList fails.
This commit is contained in:
@@ -104,6 +104,7 @@ PATCHLIST := \
|
||||
shlwapi-UrlCombine.ok \
|
||||
user32-Dialog_Paint_Event.ok \
|
||||
user32-DrawTextExW.ok \
|
||||
user32-GetRawInputDeviceList.ok \
|
||||
user32-GetSystemMetrics.ok \
|
||||
user32-GetTipText.ok \
|
||||
user32-Mouse_Message_Hwnd.ok \
|
||||
@@ -1607,6 +1608,21 @@ user32-DrawTextExW.ok:
|
||||
echo '+ { "Sebastian Lackner", "user32: Fix handling of invert_y in DrawTextExW.", 1 },'; \
|
||||
) > user32-DrawTextExW.ok
|
||||
|
||||
# Patchset user32-GetRawInputDeviceList
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#37667] Set last error when GetRawInputDeviceList fails
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/user32/input.c
|
||||
# |
|
||||
.INTERMEDIATE: user32-GetRawInputDeviceList.ok
|
||||
user32-GetRawInputDeviceList.ok:
|
||||
$(call APPLY_FILE,user32-GetRawInputDeviceList/0001-user32-Set-last-error-when-GetRawInputDeviceList-fai.patch)
|
||||
@( \
|
||||
echo '+ { "Andrew Church", "user32: Set last error when GetRawInputDeviceList fails.", 1 },'; \
|
||||
) > user32-GetRawInputDeviceList.ok
|
||||
|
||||
# Patchset user32-GetSystemMetrics
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
|
@@ -0,0 +1,24 @@
|
||||
From 5d8bbfbf4bc409af8de7ad580e6cde74797c170c Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Church <achurch+wine@achurch.org>
|
||||
Date: Thu, 4 Dec 2014 14:57:46 +0100
|
||||
Subject: user32: Set last error when GetRawInputDeviceList fails.
|
||||
|
||||
---
|
||||
dlls/user32/input.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/dlls/user32/input.c b/dlls/user32/input.c
|
||||
index ec81e60..967b114 100644
|
||||
--- a/dlls/user32/input.c
|
||||
+++ b/dlls/user32/input.c
|
||||
@@ -493,6 +493,7 @@ UINT WINAPI GetRawInputDeviceList(RAWINPUTDEVICELIST *devices, UINT *device_coun
|
||||
if (*device_count < 2)
|
||||
{
|
||||
*device_count = 2;
|
||||
+ SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||
return ~0U;
|
||||
}
|
||||
|
||||
--
|
||||
2.1.3
|
||||
|
1
patches/user32-GetRawInputDeviceList/definition
Normal file
1
patches/user32-GetRawInputDeviceList/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [37667] Set last error when GetRawInputDeviceList fails
|
Reference in New Issue
Block a user