- Timestamp:
- Jan 12, 2022 1:51:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/alloc-r0drv-nt.cpp
r93115 r93200 46 46 if (!(fFlags & RTMEMHDR_FLAG_ANY_CTX)) 47 47 { 48 PRTMEMHDR pHdr; 48 PRTMEMHDR pHdr; 49 POOL_TYPE const enmPoolType = !(fFlags & RTMEMHDR_FLAG_EXEC) && g_uRtNtVersion >= RTNT_MAKE_VERSION(8,0) 50 ? NonPagedPoolNx : NonPagedPool; 49 51 if (g_pfnrtExAllocatePoolWithTag) 50 { 51 if (!(fFlags & RTMEMHDR_FLAG_EXEC) && g_uRtNtVersion >= RTNT_MAKE_VERSION(8,0)) 52 pHdr = (PRTMEMHDR)g_pfnrtExAllocatePoolWithTag(NonPagedPoolNx, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 53 else 54 pHdr = (PRTMEMHDR)g_pfnrtExAllocatePoolWithTag(NonPagedPool, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 55 } 52 pHdr = (PRTMEMHDR)g_pfnrtExAllocatePoolWithTag(enmPoolType, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 56 53 else 57 54 { 58 55 fFlags |= RTMEMHDR_FLAG_UNTAGGED; 59 pHdr = (PRTMEMHDR)ExAllocatePool( NonPagedPool, cb + sizeof(*pHdr));56 pHdr = (PRTMEMHDR)ExAllocatePool(enmPoolType, cb + sizeof(*pHdr)); 60 57 } 61 58 if (pHdr)
Note:
See TracChangeset
for help on using the changeset viewer.