Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
e74b0dc8
Commit
e74b0dc8
authored
Mar 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement LocaleNameToLCID() using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
17c353a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
locale.c
dlls/kernelbase/locale.c
+8
-3
No files found.
dlls/kernelbase/locale.c
View file @
e74b0dc8
...
...
@@ -5596,10 +5596,15 @@ INT WINAPI DECLSPEC_HOTPATCH LCMapStringW( LCID lcid, DWORD flags, const WCHAR *
LCID
WINAPI
DECLSPEC_HOTPATCH
LocaleNameToLCID
(
const
WCHAR
*
name
,
DWORD
flags
)
{
LCID
lcid
;
const
NLS_LOCALE_DATA
*
locale
=
get_locale_by_name
(
name
,
&
lcid
);
if
(
!
name
)
return
GetUserDefaultLCID
();
if
(
!
set_ntstatus
(
RtlLocaleNameToLcid
(
name
,
&
lcid
,
2
)))
return
0
;
if
(
!
(
flags
&
LOCALE_ALLOW_NEUTRAL_NAMES
))
lcid
=
ConvertDefaultLocale
(
lcid
);
if
(
!
locale
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
if
(
!
(
flags
&
LOCALE_ALLOW_NEUTRAL_NAMES
)
&&
!
locale
->
inotneutral
)
lcid
=
locale
->
idefaultlanguage
;
return
lcid
;
}
...
...
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