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
3785dd1f
Commit
3785dd1f
authored
Mar 03, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Test VK_MENU effect on ToUnicode.
parent
ff752311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
input.c
dlls/user32/tests/input.c
+5
-0
No files found.
dlls/user32/tests/input.c
View file @
3785dd1f
...
...
@@ -3042,6 +3042,7 @@ static void test_key_map(void)
#define shift 1
#define ctrl 2
#define menu 4
static
const
struct
tounicode_tests
{
...
...
@@ -3054,6 +3055,9 @@ static const struct tounicode_tests
{
{
0
,
0
,
'a'
,
1
,
{
'a'
,
0
}},
{
0
,
shift
,
'a'
,
1
,
{
'A'
,
0
}},
{
0
,
menu
,
'a'
,
1
,
{
'a'
,
0
}},
{
0
,
shift
|
menu
,
'a'
,
1
,
{
'A'
,
0
}},
{
0
,
shift
|
ctrl
|
menu
,
'a'
,
0
,
{}},
{
0
,
ctrl
,
'a'
,
1
,
{
1
,
0
}},
{
0
,
shift
|
ctrl
,
'a'
,
1
,
{
1
,
0
}},
{
VK_TAB
,
ctrl
,
0
,
0
,
{}},
...
...
@@ -3142,6 +3146,7 @@ static void test_ToUnicode(void)
state
[
VK_SHIFT
]
=
state
[
VK_LSHIFT
]
=
(
mod
&
shift
)
?
HIGHEST_BIT
:
0
;
state
[
VK_CONTROL
]
=
state
[
VK_LCONTROL
]
=
(
mod
&
ctrl
)
?
HIGHEST_BIT
:
0
;
state
[
VK_MENU
]
=
state
[
VK_LMENU
]
=
(
mod
&
menu
)
?
HIGHEST_BIT
:
0
;
ret
=
ToUnicode
(
vk
,
scan
,
state
,
wStr
,
4
,
0
);
ok
(
ret
==
utests
[
i
].
expect_ret
,
"%d: got %d expected %d
\n
"
,
i
,
ret
,
utests
[
i
].
expect_ret
);
...
...
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