mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Return TDI_NO_RESOURCES instead of TDI_INVALID_REQUEST when we can't allocate memory
svn path=/branches/aicom-network-fixes/; revision=36001
This commit is contained in:
@@ -29,7 +29,7 @@ TDI_STATUS InfoTdiQueryGetInterfaceMIB(TDIEntityID *ID,
|
||||
(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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user