diff options
| author | Jakob Lichtenberg <[email protected]> | 2025-04-01 17:03:39 -0700 |
|---|---|---|
| committer | Jakob Lichtenberg <[email protected]> | 2025-04-01 17:03:39 -0700 |
| commit | fd2e0aaf97c2a31d1bcb608a96e68171e6308d69 (patch) | |
| tree | 2c6617043f2786c7ff8deb350f0703c1135e362a /audio/sysvad/EndpointsCommon/NewDelete.cpp | |
| parent | b3ab6ed40f649eef366e42c8177380defcca2c1d (diff) | |
| parent | 5d5cd612d00cc8c17f22a2793a284d1bb5091cdb (diff) | |
Merge branch 'main' into prahant/pc_loadletter_03012
Diffstat (limited to 'audio/sysvad/EndpointsCommon/NewDelete.cpp')
| -rw-r--r-- | audio/sysvad/EndpointsCommon/NewDelete.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/sysvad/EndpointsCommon/NewDelete.cpp b/audio/sysvad/EndpointsCommon/NewDelete.cpp index 64c64cc0..daa076e2 100644 --- a/audio/sysvad/EndpointsCommon/NewDelete.cpp +++ b/audio/sysvad/EndpointsCommon/NewDelete.cpp @@ -106,6 +106,30 @@ void __cdecl operator delete /***************************************************************************** * ::delete() ***************************************************************************** +* Sized Delete function with alignment. +*/ +#ifdef __cpp_aligned_new +void __cdecl operator delete +( + _Pre_maybenull_ __drv_freesMem(Mem) PVOID pVoid, + _In_ size_t cbSize, + _In_ std::align_val_t cbAlign +) +{ + UNREFERENCED_PARAMETER(cbSize); + UNREFERENCED_PARAMETER(cbAlign); + + if (pVoid) + { + ExFreePoolWithTag(pVoid, SYSVAD_POOLTAG); + } +} +#endif // __cpp_aligned_new + + +/***************************************************************************** +* ::delete() +***************************************************************************** * Sized Array Delete function. */ void __cdecl operator delete[] |
