benilla-re systems structs docs

ValidateStatusLevel

function · sysmsg · primitive

Address
0x44cb20 · 29 bytes, up to 0x44cb3c
Signature
int __fastcall (const char *text, int level, int unused)
Meaning
Returns 1 for a non-null text and a level below 4; otherwise sets error 0x57 and returns 0
Confidence
verified, proof one
Finding
sysmsg#printing-a-message

Finding: Printing a message in sysmsg

0x44cbd0(level, channel, format, ...) returns 0 after SErrSetLastError(0x57) when format is null, and otherwise calls 0x44cb90 with a pointer to the variable arguments. 0x44cb90 writes the text with __vsnprintf into a 256-byte stack buffer, sets its last byte to 0, and returns 0x44cb20(text, level), which returns 1 when text is non-null and level < 4 (signed), and otherwise sets error 0x57 and returns 0. The buffer is not stored or shown, so a print does nothing but the check. 35 call sites reach 0x44cbd0; 31 reach 0x44cb20.

The derivation is in the doc.

Callers 10

Callees 1

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