server-re/decomp/AgentManager_Release_x64/full/functions/0x14003eb60.c
2026-10-15 09:58:24 -04:00

19 lines
545 B
C

/* AgentManager_Release_x64.exe sha256 8fd8ca91725858651a7839d34257b10c2970ac16c97e60c523b8b0c983fcb186
* Ghidra 12.1.2 decompiler output for 0x14003eb60 FUN_14003eb60
* Pseudocode, not original source. */
undefined8 * FUN_14003eb60(undefined8 *param_1,uint param_2)
{
*param_1 = Proud::CMemoryHeapImpl::vftable;
if (*(char *)(param_1 + 2) != '\0') {
HeapDestroy((HANDLE)param_1[1]);
param_1[1] = 0;
}
*param_1 = Proud::CMemoryHeap::vftable;
if ((param_2 & 1) != 0) {
operator_delete(param_1);
}
return param_1;
}