From f88e4fbbd4d2671e5cd77e4f60be7a235326797e Mon Sep 17 00:00:00 2001 From: David Spruill Date: Thu, 8 Jan 2026 17:48:46 -0500 Subject: Restore the default parameter entries on the new calls to cause compiler errors for ambiguous allocations --- video/KMDOD/bdd.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/KMDOD/bdd.hxx b/video/KMDOD/bdd.hxx index 7ea38b34..5bfcb6f4 100644 --- a/video/KMDOD/bdd.hxx +++ b/video/KMDOD/bdd.hxx @@ -626,12 +626,12 @@ IsEdidChecksumValid(_In_reads_bytes_(EDID_V1_BLOCK_SIZE) const BYTE* pEdid); // Memory handling // -// Requiring POOL_FLAGS means that any call to new Foo() +// Defaulting the value of Flags means that any call to new Foo() // will raise a compiler error for being ambiguous. This is to help keep // any calls to allocate memory from accidentally NOT going through // these functions. -void* __cdecl operator new(size_t Size, POOL_FLAGS Flags); -void* __cdecl operator new[](size_t Size, POOL_FLAGS Flags); +void* __cdecl operator new(size_t Size, POOL_FLAGS Flags = POOL_FLAG_PAGED); +void* __cdecl operator new[](size_t Size, POOL_FLAGS Flags = POOL_FLAG_PAGED); void __cdecl operator delete(void* pObject); void __cdecl operator delete(void* pObject, size_t s); void __cdecl operator delete[](void* pObject); -- cgit v1.3.1