winemac: Avoid matching scan code 0 in GetKeyNameText.

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 on the 0x34 keyc (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.

Edited by Marc-Aurel Zent

Merge request reports

Loading