[Wine-patches] [eterhack 3/4] usbhub.sys: Make last_pdo_num local.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Апр 30 16:59:40 MSD 2009


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

diff --git a/dlls/usbhub.sys/usbhub.c b/dlls/usbhub.sys/usbhub.c
index 5518dff..23a661e 100644
--- a/dlls/usbhub.sys/usbhub.c
+++ b/dlls/usbhub.sys/usbhub.c
@@ -53,8 +53,6 @@ extern NTSTATUS CDECL __wine_add_device( DRIVER_OBJECT *driver, DEVICE_OBJECT *d
 extern DRIVER_OBJECT * CDECL __wine_get_driver_object( const WCHAR *service );
 extern NTSTATUS CDECL __wine_start_device( DEVICE_OBJECT *device );
 
-static unsigned int last_pdo_num;
-
 static struct list Devices = LIST_INIT(Devices);
 
 struct DeviceInstance
@@ -571,6 +569,7 @@ static DEVICE_OBJECT *create_pdo( struct DeviceInstance *inst, DRIVER_OBJECT *hu
     static const WCHAR usbpdoW[] = {'\\','D','e','v','i','c','e','\\',
                                     'U','S','B','P','D','O','-','%','u',0};
 
+    static unsigned int last_pdo_num;
     UNICODE_STRING pdo_name;
     DEVICE_OBJECT *usbdev = NULL;
     WCHAR *buf;
-- 
1.6.1.3.GIT



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