mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[FASTFAT]
VfatRead: Check the Length before checking the ByteOffset because reading 0 bytes should always be successful. svn path=/trunk/; revision=67492
This commit is contained in:
parent
e02846b73f
commit
e6c08e03e2
|
@ -599,6 +599,13 @@ VfatRead(
|
|||
goto ByeBye;
|
||||
}
|
||||
|
||||
if (Length == 0)
|
||||
{
|
||||
IrpContext->Irp->IoStatus.Information = 0;
|
||||
Status = STATUS_SUCCESS;
|
||||
goto ByeBye;
|
||||
}
|
||||
|
||||
if (ByteOffset.QuadPart >= Fcb->RFCB.FileSize.QuadPart)
|
||||
{
|
||||
IrpContext->Irp->IoStatus.Information = 0;
|
||||
|
@ -617,13 +624,6 @@ VfatRead(
|
|||
}
|
||||
}
|
||||
|
||||
if (Length == 0)
|
||||
{
|
||||
IrpContext->Irp->IoStatus.Information = 0;
|
||||
Status = STATUS_SUCCESS;
|
||||
goto ByeBye;
|
||||
}
|
||||
|
||||
if (Fcb->Flags & FCB_IS_VOLUME)
|
||||
{
|
||||
Resource = &IrpContext->DeviceExt->DirResource;
|
||||
|
|
Loading…
Reference in a new issue