summaryrefslogtreecommitdiffhomepage
path: root/Public/Developer/System.Core/Sources/New+Delete.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Public/Developer/System.Core/Sources/New+Delete.cxx')
-rw-r--r--Public/Developer/System.Core/Sources/New+Delete.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/Public/Developer/System.Core/Sources/New+Delete.cxx b/Public/Developer/System.Core/Sources/New+Delete.cxx
index 3e2942c5..0800da22 100644
--- a/Public/Developer/System.Core/Sources/New+Delete.cxx
+++ b/Public/Developer/System.Core/Sources/New+Delete.cxx
@@ -11,31 +11,30 @@ typedef SizeType size_t;
void* operator new[](size_t sz) {
if (sz == 0) ++sz;
- return RtAllocateProcessHeap(kApplicationObject, sz, kStandardAllocation);
+ return RtAllocateProcessPtr(sz, kStandardAllocation);
}
void* operator new(size_t sz) {
if (sz == 0) ++sz;
- return RtAllocateProcessHeap(kApplicationObject, sz, kArrayAllocation);
+ return RtAllocateProcessPtr(sz, kArrayAllocation);
}
void operator delete[](void* ptr) {
if (ptr == nullptr) return;
- RtFreeProcessHeap(kApplicationObject, ptr);
+ RtFreeProcessPtr(ptr);
}
void operator delete(void* ptr) {
if (ptr == nullptr) return;
- RtFreeProcessHeap(kApplicationObject, ptr);
+ RtFreeProcessPtr(ptr);
}
void operator delete(void* ptr, size_t sz) {
if (ptr == nullptr) return;
+ CA_UNREFERENCED_PARAMETER(sz);
- (void)sz;
-
- RtFreeProcessHeap(kApplicationObject, ptr);
+ RtFreeProcessPtr(ptr);
}