mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Recognize and deal with STATUS_END_OF_FILE.
svn path=/trunk/; revision=12219
This commit is contained in:
parent
4439ab0fb9
commit
08f643dfc4
1 changed files with 1 additions and 0 deletions
|
@ -267,6 +267,7 @@ DWORD MsafdReturnWithErrno( NTSTATUS Status, LPINT Errno, DWORD Received,
|
|||
case STATUS_SUCCESS:
|
||||
/* Return Number of bytes Read */
|
||||
if( ReturnedBytes ) *ReturnedBytes = Received; break;
|
||||
case STATUS_END_OF_FILE: *Errno = WSAESHUTDOWN; *ReturnedBytes = 0; break;
|
||||
case STATUS_PENDING: *Errno = WSA_IO_PENDING; break;
|
||||
case STATUS_BUFFER_OVERFLOW: *Errno = WSAEMSGSIZE; break;
|
||||
default: {
|
||||
|
|
Loading…
Reference in a new issue