Ken Thomases : winex11.drv: Correct the count of characters matching with layout.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 20 05:53:35 CST 2006


Module: wine
Branch: master
Commit: 9124858b08227a416c7076e94b916f4dcac7705f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9124858b08227a416c7076e94b916f4dcac7705f

Author: Ken Thomases <ken at codeweavers.com>
Date:   Fri Nov 17 14:47:31 2006 -0600

winex11.drv: Correct the count of characters matching with layout.

---

 dlls/winex11.drv/keyboard.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index bca2c21..fd85b56 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -1651,6 +1651,7 @@ void X11DRV_InitKeyboard(void)
 	      for (keyn=0; keyn<MAIN_LEN; keyn++) {
 		for (ok=(*lkey)[keyn][i=0]; ok&&(i<4); i++)
 		  if ((*lkey)[keyn][i] && (*lkey)[keyn][i]!=ckey[i]) ok=0;
+		if (!ok) i--; /* we overshot */
 		if (ok||(i>maxlen)) {
 		  maxlen=i; maxval=keyn;
 		}




More information about the wine-cvs mailing list