[Wine-devel] wineusbhub: avoid compiler warning

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Июн 19 17:19:52 MSD 2008


----------- следующая часть -----------
From 8927b85b3727b912de76d157853b523f52de6160 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на builder.office.etersoft.ru>
Date: Thu, 19 Jun 2008 15:42:41 +0400
Subject: [PATCH] wineusbhub: avoid compiler warning

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

diff --git a/dlls/wineusbhub/wineusbhub.c b/dlls/wineusbhub/wineusbhub.c
index 32b49d0..1ca16ac 100644
--- a/dlls/wineusbhub/wineusbhub.c
+++ b/dlls/wineusbhub/wineusbhub.c
@@ -311,8 +311,8 @@ DEVICE_OBJECT *__wine_usbhub_get_pdo( UCHAR *pdo_info )
 
     for (bus = usb_busses; bus; bus = bus->next)
         for (dev = bus->devices; dev; dev = dev->next)
-            if (!strcmp( bus->dirname, pdo_info + 1 ) &&
-                    !strcmp( dev->filename, pdo_info + 2 + strlen( bus->dirname ) ))
+            if (!strcmp( bus->dirname, (char *)(pdo_info + 1) ) &&
+                    !strcmp( dev->filename, (char *)(pdo_info + 2 + strlen( bus->dirname )) ))
             {
                 hubdrv.MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = __wine_usbhub_internal_ioctl;
                 hubdrv.MajorFunction[IRP_MJ_PNP] = __wine_usbhub_dispatch_pnp;
-- 
1.5.4.5.GIT



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