[USBHUB_NEW]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 22 Jan 2012 23:56:03 +0000 (23:56 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 22 Jan 2012 23:56:03 +0000 (23:56 +0000)
- Fix calling convention of completion routine

svn path=/branches/usb-bringup-trunk/; revision=55083

drivers/usb/usbhub_new/fdo.c
drivers/usb/usbhub_new/pdo.c

index a190610..3834909 100644 (file)
@@ -558,7 +558,7 @@ QueryStatusChangeEndpoint(
     // Set the completion routine for when device is connected to root hub
     //
     IoSetCompletionRoutine(HubDeviceExtension->PendingSCEIrp,
-                           (PIO_COMPLETION_ROUTINE) StatusChangeEndpointCompletion,
+                           StatusChangeEndpointCompletion,
                            DeviceObject,
                            TRUE,
                            TRUE,
index 3c7646c..4c6e4de 100644 (file)
@@ -14,6 +14,7 @@
 #define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003)
 
 NTSTATUS
+NTAPI
 UrbCompletion(
     PDEVICE_OBJECT DeviceObject,
     PIRP Irp,
@@ -108,7 +109,7 @@ FowardUrbToRootHub(
     // Now set the completion routine for the new Irp.
     //
     IoSetCompletionRoutine(ForwardIrp,
-                           (PIO_COMPLETION_ROUTINE)UrbCompletion,
+                           UrbCompletion,
                            Irp,
                            TRUE,
                            TRUE,