mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:52:59 +00:00
[NTFS] Don't dereference NULL IRP
CID 1427057
This commit is contained in:
parent
7a88e3bfd4
commit
007d3d382a
1 changed files with 3 additions and 3 deletions
|
@ -545,6 +545,9 @@ NtfsWrite(PNTFS_IRP_CONTEXT IrpContext)
|
||||||
DPRINT("NtfsWrite(IrpContext %p)\n", IrpContext);
|
DPRINT("NtfsWrite(IrpContext %p)\n", IrpContext);
|
||||||
ASSERT(IrpContext);
|
ASSERT(IrpContext);
|
||||||
|
|
||||||
|
// get the I/O request packet
|
||||||
|
Irp = IrpContext->Irp;
|
||||||
|
|
||||||
// This request is not allowed on the main device object
|
// This request is not allowed on the main device object
|
||||||
if (IrpContext->DeviceObject == NtfsGlobalData->DeviceObject)
|
if (IrpContext->DeviceObject == NtfsGlobalData->DeviceObject)
|
||||||
{
|
{
|
||||||
|
@ -554,9 +557,6 @@ NtfsWrite(PNTFS_IRP_CONTEXT IrpContext)
|
||||||
return STATUS_INVALID_DEVICE_REQUEST;
|
return STATUS_INVALID_DEVICE_REQUEST;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the I/O request packet
|
|
||||||
Irp = IrpContext->Irp;
|
|
||||||
|
|
||||||
// get the File control block
|
// get the File control block
|
||||||
Fcb = (PNTFS_FCB)IrpContext->FileObject->FsContext;
|
Fcb = (PNTFS_FCB)IrpContext->FileObject->FsContext;
|
||||||
ASSERT(Fcb);
|
ASSERT(Fcb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue