winemac.drv: Set done if macdrv_process_text_input is not processing input.

Prevents an input lockup in this case.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2019-05-06 09:33:56 -05:00 committed by Alexandre Julliard
parent 6c0a8c3592
commit 3736c36736
1 changed files with 3 additions and 0 deletions

View File

@ -1147,7 +1147,10 @@ void macdrv_process_text_input(UINT vkey, UINT scan, UINT repeat, const BYTE *ke
if (thread_data->keyc2vkey[keyc] == vkey) break;
if (keyc >= ARRAY_SIZE(thread_data->keyc2vkey))
{
*done = -1;
return;
}
TRACE("flags 0x%08x keyc 0x%04x\n", flags, keyc);