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 hid-HidD_FlushQueue patchset
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user