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

This commit is contained in:
Ken Thomases 2006-11-17 14:47:31 -06:00 committed by Alexandre Julliard
parent 89bdf03989
commit 9124858b08
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}