Mac CLIPBOARD_GetTextSize: int32_t __cdecl (void)
It reads no register or stack args. It gets the current scrap (GetCurrentScrap 0x0030aa1e) and the size of its 'TEXT' (0x54455854) flavor (GetScrapFlavorSize 0x0030aa90), and returns size+1 for the terminator, or 0 when there is no text (CMOVLE at 0x00029ae9). The only caller, Edit_WndProc 0x0001f293, keeps EAX (MOV EDI,EAX; TEST EDI,EDI) to size the paste buffer.
Changes 1, applied together
Set prototype
mac 0x00029aadsignatureundefined CLIPBOARD_GetTextSize(void)→int32_t CLIPBOARD_GetTextSize(void)conventionunknown→__cdecl