DPRINT("NtfsWrite(IrpContext %p)\n", IrpContext);
ASSERT(IrpContext);
+ // get the I/O request packet
+ Irp = IrpContext->Irp;
+
// This request is not allowed on the main device object
if (IrpContext->DeviceObject == NtfsGlobalData->DeviceObject)
{
return STATUS_INVALID_DEVICE_REQUEST;
}
- // get the I/O request packet
- Irp = IrpContext->Irp;
-
// get the File control block
Fcb = (PNTFS_FCB)IrpContext->FileObject->FsContext;
ASSERT(Fcb);