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
ed70c76a
Commit
ed70c76a
authored
Apr 14, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: By default, return all zeroes in the first half of the keyboard layout name.
parent
d3fc7dca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
input.c
dlls/user32/tests/input.c
+14
-0
keyboard.c
dlls/winex11.drv/keyboard.c
+0
-2
No files found.
dlls/user32/tests/input.c
View file @
ed70c76a
...
...
@@ -1284,6 +1284,19 @@ static void test_get_async_key_state(void)
ok
(
0
==
GetAsyncKeyState
(
-
1000000
),
"GetAsyncKeyState did not return 0
\n
"
);
}
static
void
test_keyboard_layout_name
(
void
)
{
BOOL
ret
;
char
klid
[
KL_NAMELENGTH
];
if
(
GetKeyboardLayout
(
0
)
!=
(
HKL
)(
ULONG_PTR
)
0x04090409
)
return
;
klid
[
0
]
=
0
;
ret
=
GetKeyboardLayoutNameA
(
klid
);
ok
(
ret
,
"GetKeyboardLayoutNameA failed %u
\n
"
,
GetLastError
());
ok
(
!
strcmp
(
klid
,
"00000409"
),
"expected 00000409, got %s
\n
"
,
klid
);
}
START_TEST
(
input
)
{
init_function_pointers
();
...
...
@@ -1300,6 +1313,7 @@ START_TEST(input)
test_key_map
();
test_ToUnicode
();
test_get_async_key_state
();
test_keyboard_layout_name
();
if
(
pGetMouseMovePointsEx
)
test_GetMouseMovePointsEx
();
...
...
dlls/winex11.drv/keyboard.c
View file @
ed70c76a
...
...
@@ -1914,8 +1914,6 @@ BOOL CDECL X11DRV_GetKeyboardLayoutName(LPWSTR name)
langid
=
PRIMARYLANGID
(
LANGIDFROMLCID
(
layout
));
if
(
langid
==
LANG_CHINESE
||
langid
==
LANG_JAPANESE
||
langid
==
LANG_KOREAN
)
layout
|=
0xe001
<<
16
;
/* FIXME */
else
layout
|=
layout
<<
16
;
sprintfW
(
name
,
formatW
,
layout
);
TRACE
(
"returning %s
\n
"
,
debugstr_w
(
name
));
...
...
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