Changeset 97910 in vbox for trunk/src/VBox/Runtime/r0drv/nt
- Timestamp:
- Dec 29, 2022 7:15:56 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155000
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/alloc-r0drv-nt.cpp
r96407 r97910 57 57 { 58 58 PRTMEMHDR pHdr; 59 POOL_TYPE const enmPoolType = !(fFlags & RTMEMHDR_FLAG_EXEC) && g_uRtNtVersion >= RTNT_MAKE_VERSION(8,0) 60 ? NonPagedPoolNx : NonPagedPool; 59 POOL_TYPE const enmPoolType = g_uRtNtVersion >= RTNT_MAKE_VERSION(8,0) ? NonPagedPoolNx : NonPagedPool; 61 60 if (g_pfnrtExAllocatePoolWithTag) 62 61 pHdr = (PRTMEMHDR)g_pfnrtExAllocatePoolWithTag(enmPoolType, cb + sizeof(*pHdr), IPRT_NT_POOL_TAG); … … 66 65 pHdr = (PRTMEMHDR)ExAllocatePool(enmPoolType, cb + sizeof(*pHdr)); 67 66 } 68 if ( pHdr)67 if (RT_LIKELY(pHdr)) 69 68 { 70 69 pHdr->u32Magic = RTMEMHDR_MAGIC;
Note:
See TracChangeset
for help on using the changeset viewer.