[ros-diffs] [cgutman] 35320: - Handle STATUS_BUFFER_TOO_SMALL - Handle STATUS_NO_MEMORY

cgutman at svn.reactos.org cgutman at svn.reactos.org
Thu Aug 14 00:33:49 CEST 2008


Author: cgutman
Date: Wed Aug 13 17:33:48 2008
New Revision: 35320

URL: http://svn.reactos.org/svn/reactos?rev=35320&view=rev
Log:
 - Handle STATUS_BUFFER_TOO_SMALL
 - Handle STATUS_NO_MEMORY

Modified:
    branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c

Modified: branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c?rev=35320&r1=35319&r2=35320&view=diff
==============================================================================
--- branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Wed Aug 13 17:33:48 2008
@@ -285,7 +285,9 @@
             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;



More information about the Ros-diffs mailing list