March 19, 2026
6:38 a.m.
The `keyc2scan` array is populated with the `default_map`, which has the line ``` { 0, 0, FALSE }, /* 0x34 unused */ ``` An application requesting scan code 0 in `GetKeyNameText`, then matches this in `if (thread_data->keyc2scan[keyc] == scan)` and the subsequent call to `UCKeyTranslate` succeeds (probably an apple bug), but doesn't update len or updates the buffer in any way. So the random stack content of the caller is just returned. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10378