Removed IoGetCurrentIrpStackLocation from some functions.

svn path=/trunk/; revision=2537
This commit is contained in:
Hartmut Birr 2002-01-21 22:30:27 +00:00
parent 8a8f132dbf
commit f32fe94b88
2 changed files with 6 additions and 6 deletions

View file

@ -38,7 +38,7 @@ IopCompleteRequest1(struct _KAPC* Apc,
Irp = (PIRP)(*SystemArgument1); Irp = (PIRP)(*SystemArgument1);
PriorityBoost = (CCHAR)(LONG)(*SystemArgument2); PriorityBoost = (CCHAR)(LONG)(*SystemArgument2);
IoStack = IoGetCurrentIrpStackLocation(Irp); IoStack = &Irp->Stack[(ULONG)Irp->CurrentLocation];
(*SystemArgument1) = (PVOID)Irp->UserIosb; (*SystemArgument1) = (PVOID)Irp->UserIosb;
(*SystemArgument2) = (PVOID)Irp->IoStatus.Information; (*SystemArgument2) = (PVOID)Irp->IoStatus.Information;
@ -174,7 +174,7 @@ VOID IoSecondStageCompletion(PIRP Irp, CCHAR PriorityBoost)
DPRINT("IoSecondStageCompletion(Irp %x, PriorityBoost %d)\n", DPRINT("IoSecondStageCompletion(Irp %x, PriorityBoost %d)\n",
Irp, PriorityBoost); Irp, PriorityBoost);
IoStack = IoGetCurrentIrpStackLocation(Irp); IoStack = &Irp->Stack[(ULONG)Irp->CurrentLocation];
DeviceObject = IoStack->DeviceObject; DeviceObject = IoStack->DeviceObject;

View file

@ -1,4 +1,4 @@
/* $Id: irp.c,v 1.38 2001/08/27 01:20:50 ekohl Exp $ /* $Id: irp.c,v 1.39 2002/01/21 22:30:26 hbirr Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -90,7 +90,7 @@ IoInitializeIrp (PIRP Irp, USHORT PacketSize, CCHAR StackSize)
Irp->Size = PacketSize; Irp->Size = PacketSize;
Irp->StackCount = StackSize; Irp->StackCount = StackSize;
Irp->CurrentLocation = StackSize; Irp->CurrentLocation = StackSize;
Irp->Tail.Overlay.CurrentStackLocation = IoGetCurrentIrpStackLocation(Irp); Irp->Tail.Overlay.CurrentStackLocation = &Irp->Stack[(ULONG)StackSize];
} }