mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Added hid-HidD_FlushQueue patchset
This commit is contained in:
parent
3d981b8d47
commit
f5d03d51d3
@ -0,0 +1,41 @@
|
||||
From 25d8d0cbbab19ec990505c7cf1af4bcfcf7f5bfd Mon Sep 17 00:00:00 2001
|
||||
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
Date: Tue, 16 Oct 2018 15:34:38 +1100
|
||||
Subject: [PATCH] hid: Implement HidD_FlushQueue
|
||||
|
||||
Wine-bug: https://bugs.winehq.org/show_bug.cgi?id=45878
|
||||
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
|
||||
---
|
||||
dlls/hid/hid.spec | 2 +-
|
||||
dlls/hid/hidd.c | 8 ++++++++
|
||||
2 files changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/hid/hid.spec b/dlls/hid/hid.spec
|
||||
index cbae14c..549ceea 100644
|
||||
--- a/dlls/hid/hid.spec
|
||||
+++ b/dlls/hid/hid.spec
|
||||
@@ -1,4 +1,4 @@
|
||||
-@ stub HidD_FlushQueue
|
||||
+@ stdcall HidD_FlushQueue(ptr)
|
||||
@ stdcall HidD_FreePreparsedData(ptr)
|
||||
@ stdcall HidD_GetAttributes(long ptr)
|
||||
@ stub HidD_GetConfiguration
|
||||
diff --git a/dlls/hid/hidd.c b/dlls/hid/hidd.c
|
||||
index 614e7c4..fa96bf9 100644
|
||||
--- a/dlls/hid/hidd.c
|
||||
+++ b/dlls/hid/hidd.c
|
||||
@@ -145,3 +145,11 @@ BOOLEAN WINAPI HidD_SetOutputReport(HANDLE HidDeviceObject, void *ReportBuffer,
|
||||
TRACE("(%p %p %u)\n", HidDeviceObject, ReportBuffer, ReportBufferLength);
|
||||
return DeviceIoControl(HidDeviceObject, IOCTL_HID_SET_OUTPUT_REPORT, ReportBuffer, ReportBufferLength, NULL, 0, NULL, NULL);
|
||||
}
|
||||
+
|
||||
+BOOLEAN WINAPI HidD_FlushQueue(HANDLE HidDeviceObject)
|
||||
+{
|
||||
+ DWORD RetLen;
|
||||
+ TRACE("(%p)\n", HidDeviceObject);
|
||||
+
|
||||
+ return DeviceIoControl(HidDeviceObject, IOCTL_HID_FLUSH_QUEUE, NULL, 0, NULL, 0,&RetLen, NULL);
|
||||
+}
|
||||
--
|
||||
1.9.1
|
||||
|
1
patches/hid-HidD_FlushQueue/definition
Normal file
1
patches/hid-HidD_FlushQueue/definition
Normal file
@ -0,0 +1 @@
|
||||
Fixes: [45878] Implement HidD_FlushQueue
|
@ -149,6 +149,7 @@ patch_enable_all ()
|
||||
enable_gdi32_Path_Metafile="$1"
|
||||
enable_gdi32_Symbol_Truetype_Font="$1"
|
||||
enable_gdiplus_Performance_Improvements="$1"
|
||||
enable_hid_HidD_FlushQueue="$1"
|
||||
enable_imagehlp_BindImageEx="$1"
|
||||
enable_imagehlp_Cleanup="$1"
|
||||
enable_imagehlp_ImageLoad="$1"
|
||||
@ -612,6 +613,9 @@ patch_enable ()
|
||||
gdiplus-Performance-Improvements)
|
||||
enable_gdiplus_Performance_Improvements="$2"
|
||||
;;
|
||||
hid-HidD_FlushQueue)
|
||||
enable_hid_HidD_FlushQueue="$2"
|
||||
;;
|
||||
imagehlp-BindImageEx)
|
||||
enable_imagehlp_BindImageEx="$2"
|
||||
;;
|
||||
@ -3695,6 +3699,21 @@ if test "$enable_gdiplus_Performance_Improvements" -eq 1; then
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset hid-HidD_FlushQueue
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#45878] Implement HidD_FlushQueue
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/hid/hid.spec, dlls/hid/hidd.c
|
||||
# |
|
||||
if test "$enable_hid_HidD_FlushQueue" -eq 1; then
|
||||
patch_apply hid-HidD_FlushQueue/0001-hid-Implement-HidD_FlushQueue.patch
|
||||
(
|
||||
printf '%s\n' '+ { "Alistair Leslie-Hughes", "hid: Implement HidD_FlushQueue.", 1 },';
|
||||
) >> "$patchlist"
|
||||
fi
|
||||
|
||||
# Patchset imagehlp-BindImageEx
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
@ -6352,7 +6371,7 @@ fi
|
||||
# Patchset widl-SLTG_Typelib_Support
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/oleaut32/typelib.c, dlls/oleaut32/typelib.h, tools/widl/Makefile.in, tools/widl/typelib.c, tools/widl/typelib.h,
|
||||
# | * dlls/oleaut32/typelib.c, dlls/oleaut32/typelib.h, tools/widl/Makefile.in, tools/widl/register.c, tools/widl/typelib.h,
|
||||
# | tools/widl/widl.c, tools/widl/widl.h, tools/widl/write_sltg.c
|
||||
# |
|
||||
if test "$enable_widl_SLTG_Typelib_Support" -eq 1; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user