summaryrefslogtreecommitdiff
path: root/audio/sysvad/EndpointsCommon/NewDelete.cpp
diff options
context:
space:
mode:
authorDavid Spruill <[email protected]>2026-01-08 17:51:47 -0500
committerGitHub <[email protected]>2026-01-08 17:51:47 -0500
commitc5fc3ca1fd0e00a7e085ef48abfeff9c0c39817e (patch)
tree0e650a0fee8027816bbea82ca1fd9b8e3e6ee24a /audio/sysvad/EndpointsCommon/NewDelete.cpp
parentf88e4fbbd4d2671e5cd77e4f60be7a235326797e (diff)
parented3dbe56378117a15105099870f2397671ad99ab (diff)
Merge branch 'develop' into user/daspr/kmodsamplefix
Diffstat (limited to 'audio/sysvad/EndpointsCommon/NewDelete.cpp')
-rw-r--r--audio/sysvad/EndpointsCommon/NewDelete.cpp24
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[]