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
29cbec5e
Commit
29cbec5e
authored
Nov 22, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use system language as preferred, if user language is custom-unspecified.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
beb9e113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
locale.c
dlls/ntdll/locale.c
+4
-1
No files found.
dlls/ntdll/locale.c
View file @
29cbec5e
...
...
@@ -193,13 +193,16 @@ static NTSTATUS get_dummy_preferred_ui_language( DWORD flags, LANGID lang, ULONG
NTSTATUS
status
;
ULONG
len
;
FIXME
(
"(0x%lx %
p %p %p) returning a dummy value (current locale)
\n
"
,
flags
,
count
,
buffer
,
size
);
FIXME
(
"(0x%lx %
#x %p %p %p) returning a dummy value (current locale)
\n
"
,
flags
,
lang
,
count
,
buffer
,
size
);
if
(
flags
&
MUI_LANGUAGE_ID
)
swprintf
(
name
,
ARRAY_SIZE
(
name
),
L"%04lX"
,
lang
);
else
{
UNICODE_STRING
str
;
if
(
lang
==
LOCALE_CUSTOM_UNSPECIFIED
)
NtQueryInstallUILanguage
(
&
lang
);
str
.
Buffer
=
name
;
str
.
MaximumLength
=
sizeof
(
name
);
status
=
RtlLcidToLocaleName
(
lang
,
&
str
,
0
,
FALSE
);
...
...
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