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
c0366cbb
Commit
c0366cbb
authored
Feb 27, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Prevent user locale change in NtUserActivateKeyboardLayout.
parent
27c5abe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
input.c
dlls/win32u/input.c
+8
-0
No files found.
dlls/win32u/input.c
View file @
c0366cbb
...
...
@@ -1193,6 +1193,7 @@ HKL WINAPI NtUserActivateKeyboardLayout( HKL layout, UINT flags )
{
struct
user_thread_info
*
info
=
get_user_thread_info
();
HKL
old_layout
;
LCID
locale
;
HWND
focus
;
TRACE_
(
keyboard
)(
"layout %p, flags %x
\n
"
,
layout
,
flags
);
...
...
@@ -1206,6 +1207,13 @@ HKL WINAPI NtUserActivateKeyboardLayout( HKL layout, UINT flags )
return
0
;
}
if
(
NtQueryDefaultLocale
(
TRUE
,
&
locale
)
||
LOWORD
(
layout
)
!=
locale
)
{
RtlSetLastWin32Error
(
ERROR_CALL_NOT_IMPLEMENTED
);
FIXME_
(
keyboard
)(
"Changing user locale is not supported
\n
"
);
return
0
;
}
if
(
!
user_driver
->
pActivateKeyboardLayout
(
layout
,
flags
))
return
0
;
...
...
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