Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9a3e6ca3
Commit
9a3e6ca3
authored
Aug 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Init vsc2vk in NtUserMapVirtualKeyEx only if necessary.
parent
7c95eb67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
input.c
dlls/win32u/input.c
+3
-1
No files found.
dlls/win32u/input.c
View file @
9a3e6ca3
...
...
@@ -1042,7 +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_vsc2vk
(
kbd_tables
,
vsc2vk
);
kbd_tables_init_vk2char
(
kbd_tables
,
vk2char
);
switch
(
type
)
...
...
@@ -1067,6 +1066,7 @@ UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout )
case
VK_DECIMAL
:
code
=
VK_DELETE
;
break
;
}
kbd_tables_init_vsc2vk
(
kbd_tables
,
vsc2vk
);
for
(
ret
=
0
;
ret
<
ARRAY_SIZE
(
vsc2vk
);
++
ret
)
if
(
vsc2vk
[
ret
]
==
code
)
break
;
if
(
ret
>=
ARRAY_SIZE
(
vsc2vk
))
ret
=
0
;
...
...
@@ -1079,6 +1079,8 @@ UINT WINAPI NtUserMapVirtualKeyEx( UINT code, UINT type, HKL layout )
break
;
case
MAPVK_VSC_TO_VK
:
case
MAPVK_VSC_TO_VK_EX
:
kbd_tables_init_vsc2vk
(
kbd_tables
,
vsc2vk
);
if
(
code
&
0xe000
)
code
-=
0xdf00
;
if
(
code
>=
ARRAY_SIZE
(
vsc2vk
))
ret
=
0
;
else
ret
=
vsc2vk
[
code
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment