summaryrefslogtreecommitdiffhomepage
path: root/Private/DriverKit/KernelStdCxx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Private/DriverKit/KernelStdCxx.cc')
-rw-r--r--Private/DriverKit/KernelStdCxx.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/Private/DriverKit/KernelStdCxx.cc b/Private/DriverKit/KernelStdCxx.cc
deleted file mode 100644
index 79d41a72..00000000
--- a/Private/DriverKit/KernelStdCxx.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-/* -------------------------------------------
-
- Copyright Mahrouss Logic
-
- Purpose: Driver C++ Definitions.
-
-------------------------------------------- */
-
-#include <DriverKit/KernelStd.h>
-
-void* operator new(size_t sz) {
- if (!sz) ++sz;
-
- auto ptr = kernelCall("NewKernelHeap", 1, sz);
- kernelCall("KernelHeapProtect", 1, ptr);
-
- return ptr;
-}
-
-void operator delete(void* ptr) noexcept {
- if (!ptr) return;
-
- kernelCall("DeleteKernelHeap", 1,ptr);
-}