Changeset 70153 in vbox for trunk/src/VBox/Runtime/r0drv/nt/alloc-r0drv-nt.cpp
- Timestamp:
- Dec 15, 2017 3:07:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/alloc-r0drv-nt.cpp
r69111 r70153 46 46 if (!(fFlags & RTMEMHDR_FLAG_ANY_CTX)) 47 47 { 48 #if 1 /* This allegedly makes the driver verifier happier... */ 49 POOL_TYPE enmPoolType = NonPagedPool; 50 if (!(fFlags & RTMEMHDR_FLAG_EXEC) && g_uRtNtVersion >= RTNT_MAKE_VERSION(8,0)) 51 enmPoolType = NonPagedPoolNx; 52 PRTMEMHDR pHdr = (PRTMEMHDR)ExAllocatePoolWithTag(enmPoolType, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 53 #else 54 PRTMEMHDR pHdr = (PRTMEMHDR)ExAllocatePoolWithTag(NonPagedPool, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 55 #endif 48 PRTMEMHDR pHdr; 49 if (g_pfnrtExAllocatePoolWithTag) 50 { 51 if (!(fFlags & RTMEMHDR_FLAG_EXEC) && g_uRtNtVersion >= RTNT_MAKE_VERSION(8,0)) 52 pHdr = (PRTMEMHDR)ExAllocatePoolWithTag(NonPagedPoolNx, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 53 else 54 pHdr = (PRTMEMHDR)ExAllocatePoolWithTag(NonPagedPool, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); 55 } 56 else 57 pHdr = (PRTMEMHDR)ExAllocatePool(NonPagedPool, cb + sizeof(*pHdr)); 56 58 if (pHdr) 57 59 {
Note:
See TracChangeset
for help on using the changeset viewer.