[USBHUB_NEW]

- Fix calling convention of completion routine

svn path=/branches/usb-bringup-trunk/; revision=55083
This commit is contained in:
Johannes Anderwald 2012-01-22 23:56:03 +00:00
parent d5dec59f82
commit 6612dad386
2 changed files with 3 additions and 2 deletions

View file

@ -558,7 +558,7 @@ QueryStatusChangeEndpoint(
// Set the completion routine for when device is connected to root hub // Set the completion routine for when device is connected to root hub
// //
IoSetCompletionRoutine(HubDeviceExtension->PendingSCEIrp, IoSetCompletionRoutine(HubDeviceExtension->PendingSCEIrp,
(PIO_COMPLETION_ROUTINE) StatusChangeEndpointCompletion, StatusChangeEndpointCompletion,
DeviceObject, DeviceObject,
TRUE, TRUE,
TRUE, TRUE,

View file

@ -14,6 +14,7 @@
#define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003) #define IO_METHOD_FROM_CTL_CODE(ctlCode) (ctlCode&0x00000003)
NTSTATUS NTSTATUS
NTAPI
UrbCompletion( UrbCompletion(
PDEVICE_OBJECT DeviceObject, PDEVICE_OBJECT DeviceObject,
PIRP Irp, PIRP Irp,
@ -108,7 +109,7 @@ FowardUrbToRootHub(
// Now set the completion routine for the new Irp. // Now set the completion routine for the new Irp.
// //
IoSetCompletionRoutine(ForwardIrp, IoSetCompletionRoutine(ForwardIrp,
(PIO_COMPLETION_ROUTINE)UrbCompletion, UrbCompletion,
Irp, Irp,
TRUE, TRUE,
TRUE, TRUE,