Recognize and deal with STATUS_END_OF_FILE.

svn path=/trunk/; revision=12219
This commit is contained in:
Art Yerkes 2004-12-19 10:24:52 +00:00
parent 4439ab0fb9
commit 08f643dfc4

View file

@ -267,6 +267,7 @@ DWORD MsafdReturnWithErrno( NTSTATUS Status, LPINT Errno, DWORD Received,
case STATUS_SUCCESS: case STATUS_SUCCESS:
/* Return Number of bytes Read */ /* Return Number of bytes Read */
if( ReturnedBytes ) *ReturnedBytes = Received; break; 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_PENDING: *Errno = WSA_IO_PENDING; break;
case STATUS_BUFFER_OVERFLOW: *Errno = WSAEMSGSIZE; break; case STATUS_BUFFER_OVERFLOW: *Errno = WSAEMSGSIZE; break;
default: { default: {