Changeset 29682 in vbox
- Timestamp:
- May 20, 2010 11:16:03 AM (15 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c
r29667 r29682 166 166 DECLHIDDEN(NDIS_STATUS) vboxNetFltWinMemAlloc(PVOID* ppMemBuf, UINT cbLength) 167 167 { 168 #ifdef DEBUG_NETFLT_USE_EXALLOC 169 *ppMemBuf = ExAllocatePoolWithTag(NonPagedPool, cbLength, MEM_TAG); 170 if(*ppMemBuf) 171 { 172 NdisZeroMemory(*ppMemBuf, cbLength); 173 return NDIS_STATUS_SUCCESS; 174 } 175 return NDIS_STATUS_FAILURE; 176 #else 168 177 NDIS_STATUS fStatus = NdisAllocateMemoryWithTag(ppMemBuf, cbLength, MEM_TAG); 169 178 if(fStatus == NDIS_STATUS_SUCCESS) … … 172 181 } 173 182 return fStatus; 183 #endif 174 184 } 175 185 … … 177 187 DECLHIDDEN(void) vboxNetFltWinMemFree(PVOID pvMemBuf) 178 188 { 189 #ifdef DEBUG_NETFLT_USE_EXALLOC 190 ExFreePool(pvMemBuf); 191 #else 179 192 NdisFreeMemory(pvMemBuf, 0, 0); 193 #endif 180 194 } 181 195 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltCommon-win.h
r29643 r29682 42 42 //# define DEBUG_NETFLT_RECV_NOPACKET 43 43 //# define DEBUG_NETFLT_RECV_TRANSFERDATA 44 45 //#define DEBUG_NETFLT_USE_EXALLOC 44 46 #endif 45 47
Note:
See TracChangeset
for help on using the changeset viewer.