diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-02 21:35:34 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-04-02 21:35:34 +0200 |
| commit | efc6b5d169d2b6eaabe7384141cec6054ae622a0 (patch) | |
| tree | 056fb3f24bcf0be7fb372106676349a1f5b644b8 /Public/Developer/CxxLib | |
| parent | 96d7e324ae1657216e6bb49a82466977d43d9a89 (diff) | |
OS: Changes related to System API, breaking changes, also added HTMLLib.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Developer/CxxLib')
| -rw-r--r-- | Public/Developer/CxxLib/Sources/New+Delete.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Public/Developer/CxxLib/Sources/New+Delete.cxx b/Public/Developer/CxxLib/Sources/New+Delete.cxx index c95da3e1..e065e1ed 100644 --- a/Public/Developer/CxxLib/Sources/New+Delete.cxx +++ b/Public/Developer/CxxLib/Sources/New+Delete.cxx @@ -11,17 +11,17 @@ typedef SizeType size_t; void* operator new[](size_t sz) { if (sz == 0) ++sz; - return RtAllocateProcessPtr(sz, kStandardAllocation); + return RtTlsAllocate(sz, kStandardAllocation); } void* operator new(size_t sz) { if (sz == 0) ++sz; - return RtAllocateProcessPtr(sz, kArrayAllocation); + return RtTlsAllocate(sz, kArrayAllocation); } void operator delete[](void* ptr) { if (ptr == nullptr) return; - RtFreeProcessPtr(ptr); + RtTlsFree(ptr); }
\ No newline at end of file |
