Type CUNIT_IterateServerUnitsWithCallback's parameter as a pointer to the callback
Ghidra v1809 · 41c2819
Resubmit of #672 with the type the review asked for. The parameter is a callback, not an int. The function halts if it is null, moves it to EBX and calls CUNIT_IterateHashTableWithCallback, whose parameter in that register is typed fnUnitIterCallback *. Same width, so only the type and name change.
Changes 2, applied together
Rename variable
win 0x00464950 ECXnamenParam→pfnCallbackRetype variable
win 0x00464950 ECXtypeint32_t→fnUnitIterCallback *