Eric Pouech : usbd.sys: Enable compilation with long types.

Alexandre Julliard julliard at winehq.org
Mon Feb 21 16:15:12 CST 2022


Module: wine
Branch: master
Commit: b9c3bdea88413c8deeb720f4c7f05253456745a5
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b9c3bdea88413c8deeb720f4c7f05253456745a5

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Mon Feb 21 07:57:32 2022 +0100

usbd.sys: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/usbd.sys/Makefile.in | 1 -
 dlls/usbd.sys/usbd.c      | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/usbd.sys/Makefile.in b/dlls/usbd.sys/Makefile.in
index 026f4ba4219..6040071ddaf 100644
--- a/dlls/usbd.sys/Makefile.in
+++ b/dlls/usbd.sys/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 MODULE    = usbd.sys
 IMPORTLIB = usbd
 IMPORTS   = ntoskrnl
diff --git a/dlls/usbd.sys/usbd.c b/dlls/usbd.sys/usbd.c
index 1cb25259258..d562cf1f81e 100644
--- a/dlls/usbd.sys/usbd.c
+++ b/dlls/usbd.sys/usbd.c
@@ -173,7 +173,7 @@ PUSB_INTERFACE_DESCRIPTOR WINAPI USBD_ParseConfigurationDescriptorEx(
 
     PUSB_INTERFACE_DESCRIPTOR interface;
 
-    TRACE( "(%p, %p, %d, %d, %d, %d, %d)\n", ConfigurationDescriptor,
+    TRACE( "(%p, %p, %ld, %ld, %ld, %ld, %ld)\n", ConfigurationDescriptor,
             StartPosition, InterfaceNumber, AlternateSetting,
             InterfaceClass, InterfaceSubClass, InterfaceProtocol );
 
@@ -214,7 +214,7 @@ PUSB_COMMON_DESCRIPTOR WINAPI USBD_ParseDescriptors(
 {
     PUSB_COMMON_DESCRIPTOR common;
 
-    TRACE( "(%p, %u, %p, %d)\n", DescriptorBuffer, TotalLength, StartPosition, DescriptorType );
+    TRACE( "(%p, %lu, %p, %ld)\n", DescriptorBuffer, TotalLength, StartPosition, DescriptorType );
 
     for (common = (PUSB_COMMON_DESCRIPTOR)DescriptorBuffer;
          ((char*)common) + sizeof(USB_COMMON_DESCRIPTOR) <= ((char*)DescriptorBuffer) + TotalLength;
@@ -233,7 +233,7 @@ USBD_STATUS WINAPI USBD_ValidateConfigurationDescriptor(
         PUCHAR *offset,
         ULONG tag )
 {
-    FIXME( "(%p, %u, %u, %p, %u) partial stub!\n", descr, length, level, offset, tag );
+    FIXME( "(%p, %lu, %u, %p, %lu) partial stub!\n", descr, length, level, offset, tag );
 
     if (offset) *offset = 0;
 




More information about the wine-cvs mailing list