[Wine-devel] [7/8] wineusbhub: Add support of URB_FUNCTION_VENDOR_ENDPOINT

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Авг 1 14:02:01 MSD 2008


----------- следующая часть -----------
From acbb8b35ff3c028d5d5002d521d299c40ba7ae48 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 1 Aug 2008 12:43:22 +0400
Subject: [PATCH] wineusbhub: Add support of URB_FUNCTION_VENDOR_ENDPOINT

---
 dlls/wineusbhub/wineusbhub.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/wineusbhub/wineusbhub.c b/dlls/wineusbhub/wineusbhub.c
index 62f1c5d..8159639 100644
--- a/dlls/wineusbhub/wineusbhub.c
+++ b/dlls/wineusbhub/wineusbhub.c
@@ -168,13 +168,13 @@ NTSTATUS WINAPI __wine_usbhub_internal_ioctl( DEVICE_OBJECT *device, IRP *irp )
         break;
     case URB_FUNCTION_VENDOR_DEVICE:
     case URB_FUNCTION_VENDOR_INTERFACE:
+    case URB_FUNCTION_VENDOR_ENDPOINT:
         {
             usb_dev_handle *husb;
             struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST *request =
                     &urb->u.UrbControlVendorClassRequest;
 
-            TRACE( "%s\n", (urb->u.UrbHeader.Function == URB_FUNCTION_VENDOR_DEVICE) ?
-                    "URB_FUNCTION_VENDOR_DEVICE" : "URB_FUNCTION_VENDOR_INTERFACE" );
+            TRACE( "URB_FUNCTION_VENDOR_*\n" );
 
             husb = usb_open( dev );
             if (husb)
@@ -185,6 +185,8 @@ NTSTATUS WINAPI __wine_usbhub_internal_ioctl( DEVICE_OBJECT *device, IRP *irp )
 
                 if (urb->u.UrbHeader.Function == URB_FUNCTION_VENDOR_INTERFACE)
                     req_type |= 1;
+                else if (urb->u.UrbHeader.Function == URB_FUNCTION_VENDOR_ENDPOINT)
+                    req_type |= 2;
                 buf = HeapAlloc( GetProcessHeap(), 0, request->TransferBufferLength );
                 if (buf != NULL)
                 {
-- 
1.5.4.5.GIT



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