diff options
| author | David Spruill <[email protected]> | 2026-01-08 17:48:46 -0500 |
|---|---|---|
| committer | David Spruill <[email protected]> | 2026-01-08 17:48:46 -0500 |
| commit | f88e4fbbd4d2671e5cd77e4f60be7a235326797e (patch) | |
| tree | 47eff9a370aaf74e103522041344977de235427d | |
| parent | 5778c65af08b68ef4cce309212926dfcebc73d89 (diff) | |
Restore the default parameter entries on the new calls to cause compiler errors for ambiguous allocations
| -rw-r--r-- | video/KMDOD/bdd.hxx | 6 |
1 files 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); |
