mirror of
https://github.com/reactos/reactos.git
synced 2024-08-16 08:29:38 +00:00
Removed IoGetCurrentIrpStackLocation from some functions.
svn path=/trunk/; revision=2537
This commit is contained in:
parent
8a8f132dbf
commit
f32fe94b88
|
@ -38,7 +38,7 @@ IopCompleteRequest1(struct _KAPC* Apc,
|
|||
Irp = (PIRP)(*SystemArgument1);
|
||||
PriorityBoost = (CCHAR)(LONG)(*SystemArgument2);
|
||||
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
IoStack = &Irp->Stack[(ULONG)Irp->CurrentLocation];
|
||||
|
||||
(*SystemArgument1) = (PVOID)Irp->UserIosb;
|
||||
(*SystemArgument2) = (PVOID)Irp->IoStatus.Information;
|
||||
|
@ -174,8 +174,8 @@ VOID IoSecondStageCompletion(PIRP Irp, CCHAR PriorityBoost)
|
|||
DPRINT("IoSecondStageCompletion(Irp %x, PriorityBoost %d)\n",
|
||||
Irp, PriorityBoost);
|
||||
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
||||
IoStack = &Irp->Stack[(ULONG)Irp->CurrentLocation];
|
||||
|
||||
DeviceObject = IoStack->DeviceObject;
|
||||
|
||||
switch (IoStack->MajorFunction)
|
||||
|
|
|
@ -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
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -53,7 +53,7 @@ IoFreeIrp (PIRP Irp)
|
|||
* Irp = Irp to free
|
||||
*/
|
||||
{
|
||||
ExFreePool(Irp);
|
||||
ExFreePool(Irp);
|
||||
}
|
||||
|
||||
|
||||
|
@ -90,7 +90,7 @@ IoInitializeIrp (PIRP Irp, USHORT PacketSize, CCHAR StackSize)
|
|||
Irp->Size = PacketSize;
|
||||
Irp->StackCount = StackSize;
|
||||
Irp->CurrentLocation = StackSize;
|
||||
Irp->Tail.Overlay.CurrentStackLocation = IoGetCurrentIrpStackLocation(Irp);
|
||||
Irp->Tail.Overlay.CurrentStackLocation = &Irp->Stack[(ULONG)StackSize];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue