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
0f7cd3d6
Commit
0f7cd3d6
authored
Mar 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement LOCALE_SPARENT in GetLocaleInfoW/Ex using the locale.nls data.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d370618a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
locale.c
dlls/kernelbase/locale.c
+1
-12
No files found.
dlls/kernelbase/locale.c
View file @
0f7cd3d6
...
@@ -1103,7 +1103,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
...
@@ -1103,7 +1103,7 @@ static int get_locale_info( const NLS_LOCALE_DATA *locale, LCID lcid, LCTYPE typ
return
-
1
;
return
-
1
;
case
LOCALE_SPARENT
:
case
LOCALE_SPARENT
:
return
-
1
;
return
locale_return_string
(
locale
->
sparent
,
type
,
buffer
,
len
)
;
case
LOCALE_SCONSOLEFALLBACKNAME
:
case
LOCALE_SCONSOLEFALLBACKNAME
:
return
-
1
;
return
-
1
;
...
@@ -5017,17 +5017,6 @@ INT WINAPI DECLSPEC_HOTPATCH GetLocaleInfoEx( const WCHAR *name, LCTYPE info, WC
...
@@ -5017,17 +5017,6 @@ INT WINAPI DECLSPEC_HOTPATCH GetLocaleInfoEx( const WCHAR *name, LCTYPE info, WC
lcid
=
LocaleNameToLCID
(
name
,
0
);
lcid
=
LocaleNameToLCID
(
name
,
0
);
if
(
!
lcid
)
return
0
;
if
(
!
lcid
)
return
0
;
/* special handling for neutral locale names */
if
(
name
&&
lstrlenW
(
name
)
==
2
)
{
switch
(
LOWORD
(
info
))
{
case
LOCALE_SPARENT
:
if
(
len
)
buffer
[
0
]
=
0
;
return
1
;
}
}
return
GetLocaleInfoW
(
lcid
,
info
,
buffer
,
len
);
return
GetLocaleInfoW
(
lcid
,
info
,
buffer
,
len
);
}
}
...
...
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