Module: wine Branch: master Commit: 3736c36736cf285c1ea9cf4efa272868bb7afceb URL: https://source.winehq.org/git/wine.git/?a=commit;h=3736c36736cf285c1ea9cf4ef...
Author: Aric Stewart aric@codeweavers.com Date: Mon May 6 09:33:56 2019 -0500
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
---
dlls/winemac.drv/keyboard.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/winemac.drv/keyboard.c b/dlls/winemac.drv/keyboard.c index aa47b95..aed4ff0 100644 --- a/dlls/winemac.drv/keyboard.c +++ b/dlls/winemac.drv/keyboard.c @@ -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);