[Wine-patches] [13/23] usbhub.sys: Handle IRP_MN_QUERY_DEVICE_RELATIONS.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Янв 19 18:24:30 MSK 2009


For eterhack branch
----------- следующая часть -----------
From 745a8ff9ab172763fcd9f68b795322b0b98dd1cf Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Tue, 13 Jan 2009 14:57:35 +0300
Subject: [PATCH] usbhub.sys: Handle IRP_MN_QUERY_DEVICE_RELATIONS.

---
 dlls/usbhub.sys/usbhub.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dlls/usbhub.sys/usbhub.c b/dlls/usbhub.sys/usbhub.c
index 0bb6e0c..76c86a4 100644
--- a/dlls/usbhub.sys/usbhub.c
+++ b/dlls/usbhub.sys/usbhub.c
@@ -250,10 +250,19 @@ NTSTATUS WINAPI __wine_usbhub_internal_ioctl( DEVICE_OBJECT *device, IRP *irp )
 
 NTSTATUS WINAPI __wine_usbhub_dispatch_pnp( DEVICE_OBJECT *device, IRP *irp )
 {
+    IO_STACK_LOCATION *irpsp;
+
     TRACE( "%p, %p\n", device, irp );
 
-    irp->IoStatus.u.Status = STATUS_SUCCESS;
-    irp->IoStatus.Information = 0;
+    irpsp = irp->Tail.Overlay.s.u.CurrentStackLocation;
+    switch (irpsp->MinorFunction)
+    {
+    case IRP_MN_QUERY_DEVICE_RELATIONS:
+        break;
+    default:
+        irp->IoStatus.u.Status = STATUS_SUCCESS;
+        irp->IoStatus.Information = 0;
+    }
     wine_complete_request( irp, IO_NO_INCREMENT );
 
     return STATUS_SUCCESS;
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches