server-re/decomp/DBCServer_Release_x64/full/functions/0x14019acd0.c

19 lines
542 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14019acd0 FUN_14019acd0
* Pseudocode, not original source. */
undefined8 * FUN_14019acd0(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;
}