benilla-re systems structs docs

CSimpleEditBox::FreeHistory

function · ui · orchestration

Address
0x77e440 · 79 bytes, up to 0x77e48e
Signature
void __thiscall (CSimpleEditBox *this)
Meaning
Frees every history string and then the history array
Confidence
verified, proof one
Finding
ui/editboxmembers#history-array

Finding: History array in ui: edit box members

SetHistoryLines(n) sets the line limit through 0x77cd90(n). A different count than the stored one frees the records the new size drops (the string of each, through 0x77cf20), reallocates the array to n records of 8 bytes, zero-fills the new ones and stores the count. A reallocation that fails allocates a new array and copies the smaller count of records, duplicating each string. A count of 0 frees every string and the array and zeroes capacity, count and data. It then stores n at +0x388 and clamps the position +0x38c to n − 1 (0 for none).

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.