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

Alexandre Julliard julliard at winehq.org
Mon May 6 15:38:49 CDT 2019


Module: wine
Branch: master
Commit: 3736c36736cf285c1ea9cf4efa272868bb7afceb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3736c36736cf285c1ea9cf4efa272868bb7afceb

Author: Aric Stewart <aric at 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 at codeweavers.com>
Signed-off-by: Ken Thomases <ken at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
 




More information about the wine-cvs mailing list