fix highest allocated page for arena unload

This commit is contained in:
daanx 2025-01-22 12:25:02 -08:00
parent 7b8a710774
commit a7370dcbd2
4 changed files with 24 additions and 6 deletions

View file

@ -12,4 +12,14 @@ std::string TestAllocInDll::GetString()
std::string r = test;
delete[] test;
return r;
}
#include <windows.h>
void TestAllocInDll::TestHeapAlloc()
{
HANDLE heap = GetProcessHeap();
int* p = (int*)HeapAlloc(heap, 0, sizeof(int));
*p = 42;
HeapFree(heap, 0, p);
}