From 6612dad3864cc8277edd8d004a68168c84ba73b5 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sun, 22 Jan 2012 23:56:03 +0000 Subject: [PATCH] [USBHUB_NEW] - Fix calling convention of completion routine svn path=/branches/usb-bringup-trunk/; revision=55083 --- drivers/usb/usbhub_new/fdo.c | 2 +- drivers/usb/usbhub_new/pdo.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/usbhub_new/fdo.c b/drivers/usb/usbhub_new/fdo.c index a190610fbbb..3834909dc91 100644 --- a/drivers/usb/usbhub_new/fdo.c +++ b/drivers/usb/usbhub_new/fdo.c @@ -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, diff --git a/drivers/usb/usbhub_new/pdo.c b/drivers/usb/usbhub_new/pdo.c index 3c7646cb55b..4c6e4de1b0f 100644 --- a/drivers/usb/usbhub_new/pdo.c +++ b/drivers/usb/usbhub_new/pdo.c @@ -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, -- 2.17.1