Module: wine Branch: master Commit: 42100f2de6b958f4b6ea9c99dbb9d7c766b6349d URL: https://gitlab.winehq.org/wine/wine/-/commit/42100f2de6b958f4b6ea9c99dbb9d7c...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sat Aug 26 12:36:46 2023 +0200
win32u: Init vsc2char in NtUserMapVirtualKeyEx only if necessary.
---
dlls/win32u/input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/win32u/input.c b/dlls/win32u/input.c index ea516fdda9b..3e6e440de93 100644 --- a/dlls/win32u/input.c +++ b/dlls/win32u/input.c @@ -1042,8 +1042,6 @@ UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout )
if ((ret = user_driver->pMapVirtualKeyEx( code, type, layout )) != -1) return ret;
- kbd_tables_init_vk2char( kbd_tables, vk2char ); - switch (type) { case MAPVK_VK_TO_VSC_EX: @@ -1096,6 +1094,7 @@ UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout ) } break; case MAPVK_VK_TO_CHAR: + kbd_tables_init_vk2char( kbd_tables, vk2char ); if (code >= ARRAY_SIZE(vk2char)) ret = 0; else if (code >= 'A' && code <= 'Z') ret = code; else ret = vk2char[code];