mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00: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:
parent
ab22534129
commit
08d0aae07e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue