mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
Fixed return value in ReadFile().
svn path=/trunk/; revision=2712
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: rw.c,v 1.16 2001/10/12 19:13:01 hbirr Exp $
|
||||
/* $Id: rw.c,v 1.17 2002/03/14 16:35:53 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
@@ -140,7 +140,7 @@ WINBOOL STDCALL ReadFile(HANDLE hFile,
|
||||
*lpNumberOfBytesRead = IoStatusBlock->Information;
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(errCode))
|
||||
if (!NT_SUCCESS(errCode) && errCode != STATUS_END_OF_FILE)
|
||||
{
|
||||
SetLastErrorByStatus (errCode);
|
||||
return(FALSE);
|
||||
|
||||
Reference in New Issue
Block a user