Skip to content

Commit

Permalink
Merge with upcoming PR #1088
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobL-MSFT committed Feb 1, 2024
1 parent fafa836 commit 22b89d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion video/KMDOD/memory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ void* __cdecl operator new(size_t Size, POOL_TYPE PoolType)

Size = (Size != 0) ? Size : 1;

// Note that ExAllocatePool2 replaces ExAllocatePool* APIs in OS's starting
// with Windows 10, version 2004. If your driver targets previous versions it
// should use ExAllocatePoolZero instead.
void* pObject = ExAllocatePool2(PoolType, Size, BDDTAG);

#if DBG
Expand Down Expand Up @@ -87,4 +90,3 @@ void __cdecl operator delete[](void* pObject)
ExFreePool(pObject);
}
}

0 comments on commit 22b89d3

Please sign in to comment.