[ros-diffs] [janderwald] 55083: [USBHUB_NEW] - Fix calling convention of completion routine

janderwald at svn.reactos.org janderwald at svn.reactos.org
Sun Jan 22 23:56:04 UTC 2012


Author: janderwald
Date: Sun Jan 22 23:56:03 2012
New Revision: 55083

URL: http://svn.reactos.org/svn/reactos?rev=55083&view=rev
Log:
[USBHUB_NEW]
- Fix calling convention of completion routine

Modified:
    branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
    branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c

Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
URL: http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c?rev=55083&r1=55082&r2=55083&view=diff
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] Sun Jan 22 23:56:03 2012
@@ -558,7 +558,7 @@
     // Set the completion routine for when device is connected to root hub
     //
     IoSetCompletionRoutine(HubDeviceExtension->PendingSCEIrp,
-                           (PIO_COMPLETION_ROUTINE) StatusChangeEndpointCompletion,
+                           StatusChangeEndpointCompletion,
                            DeviceObject,
                            TRUE,
                            TRUE,

Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c
URL: http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c?rev=55083&r1=55082&r2=55083&view=diff
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c [iso-8859-1] Sun Jan 22 23:56:03 2012
@@ -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 @@
     // Now set the completion routine for the new Irp.
     //
     IoSetCompletionRoutine(ForwardIrp,
-                           (PIO_COMPLETION_ROUTINE)UrbCompletion,
+                           UrbCompletion,
                            Irp,
                            TRUE,
                            TRUE,




More information about the Ros-diffs mailing list