mirror of
https://github.com/reactos/reactos.git
synced 2026-06-06 13:47:40 +08:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user