[FASTFAT]

Irp->UserBuffer being NULL doesn't indicate any error. It could be that the
caller really wants the result stored at address NULL (which can be valid,
and is valid by default for programs like NTVDM).


svn path=/trunk/; revision=68607
This commit is contained in:
Aleksandar Andrejevic 2015-08-07 03:30:05 +00:00
parent ab22534129
commit 08d0aae07e

View file

@ -656,7 +656,7 @@ VfatRead(
}
Buffer = VfatGetUserBuffer(IrpContext->Irp, BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
if (!Buffer)
if (!Buffer && IrpContext->Irp->MdlAddress)
{
Status = STATUS_INVALID_USER_BUFFER;
goto ByeBye;
@ -927,7 +927,7 @@ VfatWrite(
OldFileSize = Fcb->RFCB.FileSize;
Buffer = VfatGetUserBuffer(IrpContext->Irp, BooleanFlagOn(IrpContext->Irp->Flags, IRP_PAGING_IO));
if (!Buffer)
if (!Buffer && IrpContext->Irp->MdlAddress)
{
Status = STATUS_INVALID_USER_BUFFER;
goto ByeBye;