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
80985b7e
Commit
80985b7e
authored
Apr 30, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Read "Layout Id" from registry in GetKeyboardLayoutList.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
66c31814
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
input.c
dlls/user32/input.c
+6
-2
No files found.
dlls/user32/input.c
View file @
80985b7e
...
...
@@ -1336,8 +1336,8 @@ BOOL WINAPI BlockInput(BOOL fBlockIt)
*/
UINT
WINAPI
GetKeyboardLayoutList
(
INT
size
,
HKL
*
layouts
)
{
WCHAR
klid
[
KL_NAMELENGTH
];
UINT
count
,
tmp
,
i
=
0
;
WCHAR
klid
[
KL_NAMELENGTH
]
,
value
[
5
]
;
DWORD
value_size
,
count
,
tmp
,
i
=
0
;
HKEY
hkey
;
HKL
layout
;
...
...
@@ -1360,6 +1360,10 @@ UINT WINAPI GetKeyboardLayoutList( INT size, HKL *layouts )
while
(
!
RegEnumKeyW
(
hkey
,
i
++
,
klid
,
ARRAY_SIZE
(
klid
)
))
{
tmp
=
wcstoul
(
klid
,
NULL
,
16
);
value_size
=
sizeof
(
value
);
if
(
!
RegGetValueW
(
hkey
,
klid
,
L"Layout Id"
,
RRF_RT_REG_SZ
,
NULL
,
(
void
*
)
&
value
,
&
value_size
))
tmp
=
MAKELONG
(
LOWORD
(
tmp
),
0xf000
|
(
wcstoul
(
value
,
NULL
,
16
)
&
0xfff
)
);
if
(
layout
==
UlongToHandle
(
tmp
))
continue
;
count
++
;
...
...
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