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
72ab2d5b
Commit
72ab2d5b
authored
Dec 28, 2017
by
Alex Henrie
Committed by
Alexandre Julliard
Dec 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix OemKeyScan failures with input method editors.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
41a76447
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Makefile.in
dlls/user32/tests/Makefile.in
+1
-1
input.c
dlls/user32/tests/input.c
+6
-1
No files found.
dlls/user32/tests/Makefile.in
View file @
72ab2d5b
TESTDLL
=
user32.dll
IMPORTS
=
user32 gdi32 advapi32
IMPORTS
=
user32 gdi32 advapi32
imm32
C_SRCS
=
\
broadcast.c
\
...
...
dlls/user32/tests/input.c
View file @
72ab2d5b
...
...
@@ -54,6 +54,7 @@
#include "winbase.h"
#include "winuser.h"
#include "winnls.h"
#include "imm.h"
#include "wine/test.h"
...
...
@@ -2515,6 +2516,7 @@ static void test_OemKeyScan(void)
DWORD
ret
,
expect
,
vkey
,
scan
;
WCHAR
oem
,
wchr
;
char
oem_char
;
BOOL
ime
=
ImmIsIME
(
GetKeyboardLayout
(
0
));
for
(
oem
=
0
;
oem
<
0x200
;
oem
++
)
{
...
...
@@ -2527,7 +2529,10 @@ static void test_OemKeyScan(void)
{
vkey
=
VkKeyScanW
(
wchr
);
scan
=
MapVirtualKeyW
(
LOBYTE
(
vkey
),
MAPVK_VK_TO_VSC
);
if
(
!
scan
)
/* OemKeyScan returns -1 for any character that has to go through
* the IME, whereas VkKeyScan returns the virtual key code for the
* question mark key */
if
(
!
scan
||
(
ime
&&
wchr
!=
'?'
&&
vkey
==
VkKeyScanW
(
'?'
)))
expect
=
-
1
;
else
{
...
...
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