Commit 9124858b authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 89bdf039
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment