mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTFS]
An IRP context without an IRP sounds like a challenge... svn path=/trunk/; revision=67536
This commit is contained in:
parent
11a3512389
commit
f982ad2644
1 changed files with 4 additions and 10 deletions
|
@ -83,16 +83,10 @@ NtfsAllocateIrpContext(PDEVICE_OBJECT DeviceObject,
|
|||
IrpContext->Identifier.Size = sizeof(NTFS_IRP_CONTEXT);
|
||||
IrpContext->Irp = Irp;
|
||||
IrpContext->DeviceObject = DeviceObject;
|
||||
|
||||
if (Irp)
|
||||
{
|
||||
IoStackLocation = IoGetCurrentIrpStackLocation(Irp);
|
||||
ASSERT(IoStackLocation);
|
||||
|
||||
IrpContext->MajorFunction = IoStackLocation->MajorFunction;
|
||||
IrpContext->MinorFunction = IoStackLocation->MinorFunction;
|
||||
IrpContext->IsTopLevel = (IoGetTopLevelIrp() == Irp);
|
||||
}
|
||||
IoStackLocation = IoGetCurrentIrpStackLocation(Irp);
|
||||
IrpContext->MajorFunction = IoStackLocation->MajorFunction;
|
||||
IrpContext->MinorFunction = IoStackLocation->MinorFunction;
|
||||
IrpContext->IsTopLevel = (IoGetTopLevelIrp() == Irp);
|
||||
|
||||
return IrpContext;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue