Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e574350b
Commit
e574350b
authored
Nov 13, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Nov 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Don't perform character lookup ToUnicode() tests on non-US keyboards.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
03a09e73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
input.c
dlls/user32/tests/input.c
+6
-1
No files found.
dlls/user32/tests/input.c
View file @
e574350b
...
...
@@ -1648,6 +1648,8 @@ static void test_ToUnicode(void)
const
BYTE
SC_RETURN
=
0x1c
,
SC_TAB
=
0x0f
,
SC_A
=
0x1e
;
const
BYTE
HIGHEST_BIT
=
0x80
;
int
i
,
ret
;
BOOL
us_kbd
=
(
GetKeyboardLayout
(
0
)
==
(
HKL
)(
ULONG_PTR
)
0x04090409
);
for
(
i
=
0
;
i
<
256
;
i
++
)
state
[
i
]
=
0
;
...
...
@@ -1674,7 +1676,10 @@ static void test_ToUnicode(void)
if
(
!
vk
)
{
short
vk_ret
=
VkKeyScanW
(
utests
[
i
].
chr
);
short
vk_ret
;
if
(
!
us_kbd
)
continue
;
vk_ret
=
VkKeyScanW
(
utests
[
i
].
chr
);
if
(
vk_ret
==
-
1
)
continue
;
vk
=
vk_ret
&
0xff
;
if
(
vk_ret
&
0x100
)
mod
|=
shift
;
...
...
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