Aric Stewart : hidclass.sys: Call IoAttachDeviceToDeviceStack when creating HID device.
Alexandre Julliard
julliard at winehq.org
Wed Aug 17 10:24:24 CDT 2016
Module: wine
Branch: master
Commit: ab3b9bd84db3b942ea7ce1e85ac6dd12087f2596
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab3b9bd84db3b942ea7ce1e85ac6dd12087f2596
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Aug 12 08:18:56 2016 -0500
hidclass.sys: Call IoAttachDeviceToDeviceStack when creating HID device.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hidclass.sys/device.c | 2 ++
include/ddk/wdm.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c
index b137c9b..b90e701 100644
--- a/dlls/hidclass.sys/device.c
+++ b/dlls/hidclass.sys/device.c
@@ -75,6 +75,8 @@ NTSTATUS HID_CreateDevice(DEVICE_OBJECT *native_device, HID_MINIDRIVER_REGISTRAT
lstrcpyW(ext->device_name, dev_name);
ext->link_name = NULL;
+ IoAttachDeviceToDeviceStack(*device, native_device);
+
return S_OK;
}
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 5eda82d..68694af 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1213,6 +1213,7 @@ NTSTATUS WINAPI IoAllocateDriverObjectExtension(PDRIVER_OBJECT,PVOID,ULONG,PVOI
PVOID WINAPI IoAllocateErrorLogEntry(PVOID,UCHAR);
PIRP WINAPI IoAllocateIrp(CCHAR,BOOLEAN);
PMDL WINAPI IoAllocateMdl(PVOID,ULONG,BOOLEAN,BOOLEAN,IRP*);
+PDEVICE_OBJECT WINAPI IoAttachDeviceToDeviceStack(PDEVICE_OBJECT,PDEVICE_OBJECT);
PIRP WINAPI IoBuildDeviceIoControlRequest(ULONG,DEVICE_OBJECT*,PVOID,ULONG,PVOID,ULONG,BOOLEAN,PKEVENT,IO_STATUS_BLOCK*);
PIRP WINAPI IoBuildSynchronousFsdRequest(ULONG,DEVICE_OBJECT*,PVOID,ULONG,PLARGE_INTEGER,PKEVENT,IO_STATUS_BLOCK*);
NTSTATUS WINAPI IoCallDriver(DEVICE_OBJECT*,IRP*);
More information about the wine-cvs
mailing list