mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 06:37:06 +00:00
Disabled debug message.
Attempt to read beyond the end of a file must return STATUS_END_OF_FILE. svn path=/trunk/; revision=3773
This commit is contained in:
parent
64975d00e2
commit
b8d0354d95
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: finfo.c,v 1.6 2002/10/03 18:28:22 sedwards Exp $
|
/* $Id: finfo.c,v 1.7 2002/11/20 21:55:25 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -403,7 +403,7 @@ CdfsSetInformation(PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
DPRINT1("CdfsSetInformation() called\n");
|
DPRINT("CdfsSetInformation() called\n");
|
||||||
|
|
||||||
Stack = IoGetCurrentIrpStackLocation(Irp);
|
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
FileInformationClass = Stack->Parameters.SetFile.FileInformationClass;
|
FileInformationClass = Stack->Parameters.SetFile.FileInformationClass;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: rw.c,v 1.7 2002/10/01 19:27:16 chorns Exp $
|
/* $Id: rw.c,v 1.8 2002/11/20 21:55:25 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -68,11 +68,14 @@ CdfsReadFile(PDEVICE_EXTENSION DeviceExt,
|
||||||
*LengthRead = 0;
|
*LengthRead = 0;
|
||||||
|
|
||||||
if (Length == 0)
|
if (Length == 0)
|
||||||
return STATUS_SUCCESS;
|
return(STATUS_SUCCESS);
|
||||||
|
|
||||||
Ccb = (PCCB)FileObject->FsContext2;
|
Ccb = (PCCB)FileObject->FsContext2;
|
||||||
Fcb = Ccb->Fcb;
|
Fcb = Ccb->Fcb;
|
||||||
|
|
||||||
|
if (ReadOffset >= Fcb->Entry.DataLengthL)
|
||||||
|
return(STATUS_END_OF_FILE);
|
||||||
|
|
||||||
if (ReadOffset + Length > Fcb->Entry.DataLengthL)
|
if (ReadOffset + Length > Fcb->Entry.DataLengthL)
|
||||||
Length = Fcb->Entry.DataLengthL - ReadOffset;
|
Length = Fcb->Entry.DataLengthL - ReadOffset;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue