diff --git a/reactos/ntoskrnl/io/cleanup.c b/reactos/ntoskrnl/io/cleanup.c index c0d5667233a..c5fe3e93b3a 100644 --- a/reactos/ntoskrnl/io/cleanup.c +++ b/reactos/ntoskrnl/io/cleanup.c @@ -191,6 +191,7 @@ IoSecondStageCompletion( } DPRINT("Tail Value %x, Irp Value %x\n", Irp->Tail.Overlay.CurrentStackLocation - (PIO_STACK_LOCATION)(Irp+1), Irp->CurrentLocation); + IoStack = (PIO_STACK_LOCATION)(Irp+1) + Irp->CurrentLocation; DeviceObject = IoStack->DeviceObject; DPRINT("IoSecondStageCompletion(Irp %x, PriorityBoost %d)\n", Irp, PriorityBoost);