mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed return value in ReadFile().
svn path=/trunk/; revision=2712
This commit is contained in:
parent
b53f18ea54
commit
2c92fa8738
1 changed files with 2 additions and 2 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -140,7 +140,7 @@ WINBOOL STDCALL ReadFile(HANDLE hFile,
|
||||||
*lpNumberOfBytesRead = IoStatusBlock->Information;
|
*lpNumberOfBytesRead = IoStatusBlock->Information;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!NT_SUCCESS(errCode))
|
if (!NT_SUCCESS(errCode) && errCode != STATUS_END_OF_FILE)
|
||||||
{
|
{
|
||||||
SetLastErrorByStatus (errCode);
|
SetLastErrorByStatus (errCode);
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
Loading…
Reference in a new issue