[ros-diffs] [cgutman] 36001: - Return TDI_NO_RESOURCES instead of TDI_INVALID_REQUEST when we can't allocate memory

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sat Sep 6 22:27:57 CEST 2008


Author: cgutman
Date: Sat Sep  6 15:27:56 2008
New Revision: 36001

URL: http://svn.reactos.org/svn/reactos?rev=36001&view=rev
Log:
 - Return TDI_NO_RESOURCES instead of TDI_INVALID_REQUEST when we can't allocate memory

Modified:
    branches/aicom-network-fixes/drivers/network/tcpip/tcpip/iinfo.c

Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/iinfo.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/tcpip/tcpip/iinfo.c?rev=36001&r1=36000&r2=36001&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/iinfo.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/iinfo.c [iso-8859-1] Sat Sep  6 15:27:56 2008
@@ -29,7 +29,7 @@
 	(PIFENTRY)ExAllocatePool( NonPagedPool,
 				  sizeof(IFENTRY) + MAX_IFDESCR_LEN );
 
-    if( !OutData ) return TDI_INVALID_REQUEST; /* Out of memory */
+    if( !OutData ) return TDI_NO_RESOURCES; /* Out of memory */
 
     RtlZeroMemory( OutData, sizeof(IFENTRY) + MAX_IFDESCR_LEN );
 



More information about the Ros-diffs mailing list