Author: pschweitzer
Date: Sun May 3 18:13:16 2015
New Revision: 67536
URL:
http://svn.reactos.org/svn/reactos?rev=67536&view=rev
Log:
[NTFS]
An IRP context without an IRP sounds like a challenge...
Modified:
trunk/reactos/drivers/filesystems/ntfs/misc.c
Modified: trunk/reactos/drivers/filesystems/ntfs/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/m…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/misc.c [iso-8859-1] Sun May 3 18:13:16 2015
@@ -83,16 +83,10 @@
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;
}