[Wine-patches] wineusb: Enumerate USB devices with any GUID.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Окт 10 16:29:51 MSD 2008


----------- следующая часть -----------
From 2b2531f8c96e29f7493d8280eddc128c5bcfcdac Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 10 Oct 2008 16:04:43 +0400
Subject: [PATCH] wineusb: Enumerate USB devices with any GUID.

---
 programs/wineusb/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/wineusb/main.c b/programs/wineusb/main.c
index 864376d..6787b2b 100644
--- a/programs/wineusb/main.c
+++ b/programs/wineusb/main.c
@@ -81,7 +81,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
 {
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
     HDEVINFO set;
-    GUID guid = {0x36FC9E60, 0xC465, 0x11CF, {0x80,0x56,0x44,0x45,0x53,0x54,0x00,0x00}};
+    static const WCHAR usb[] = {'U','S','B',0};
 #endif
     SERVICE_STATUS status;
 
@@ -103,7 +103,7 @@ static void WINAPI ServiceMain( DWORD argc, LPWSTR *argv )
     SetServiceStatus( service_handle, &status );
 
 #if defined(HAVE_LIBUSB) && defined(HAVE_USB_H)
-    set = SetupDiGetClassDevsW( &guid, NULL, 0, 0 );
+    set = SetupDiGetClassDevsW( NULL, usb, 0, DIGCF_ALLCLASSES );
     if (set != INVALID_HANDLE_VALUE)
     {
         UNICODE_STRING drvname;
-- 
1.5.6.5.GIT



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