- Handle STATUS_BUFFER_TOO_SMALL
authorCameron Gutman <aicommander@gmail.com>
Wed, 13 Aug 2008 22:33:48 +0000 (22:33 +0000)
committerCameron Gutman <aicommander@gmail.com>
Wed, 13 Aug 2008 22:33:48 +0000 (22:33 +0000)
 - Handle STATUS_NO_MEMORY

svn path=/branches/aicom-network-fixes/; revision=35320

dll/win32/msafd/misc/dllmain.c

index 4c520e1..51069ad 100644 (file)
@@ -285,7 +285,9 @@ DWORD MsafdReturnWithErrno( NTSTATUS Status, LPINT Errno, DWORD Received,
             if( ReturnedBytes ) *ReturnedBytes = Received; break;
         case STATUS_END_OF_FILE: *Errno = WSAESHUTDOWN; break;
         case STATUS_PENDING: *Errno = WSA_IO_PENDING; break;
+       case STATUS_BUFFER_TOO_SMALL: /* Fall through to STATUS_BUFFER_OVERFLOW */
         case STATUS_BUFFER_OVERFLOW: *Errno = WSAEMSGSIZE; break;
+       case STATUS_NO_MEMORY: /* Fall through to STATUS_INSUFFICIENT_RESOURCES */
         case STATUS_INSUFFICIENT_RESOURCES: *Errno = WSA_NOT_ENOUGH_MEMORY; break;
         case STATUS_INVALID_CONNECTION: *Errno = WSAEAFNOSUPPORT; break;
         case STATUS_REMOTE_NOT_LISTENING: *Errno = WSAECONNRESET; break;