Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
998cdd65
Commit
998cdd65
authored
Nov 14, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Nov 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a crash in GetLocaleInfo() when extra high bits are set.
parent
13515664
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
locale.c
dlls/kernel/locale.c
+3
-3
No files found.
dlls/kernel/locale.c
View file @
998cdd65
...
...
@@ -678,7 +678,7 @@ static const WCHAR *get_locale_value_name( DWORD lctype )
static
const
WCHAR
sYearMonthW
[]
=
{
's'
,
'Y'
,
'e'
,
'a'
,
'r'
,
'M'
,
'o'
,
'n'
,
't'
,
'h'
,
0
};
static
const
WCHAR
NumShapeW
[]
=
{
'N'
,
'u'
,
'm'
,
's'
,
'h'
,
'a'
,
'p'
,
'e'
,
0
};
switch
(
lctype
&
~
LOCALE_LOCALEINFOFLAGSMASK
)
switch
(
lctype
)
{
/* These values are used by SetLocaleInfo and GetLocaleInfo, and
* the values are stored in the registry, confirmed under Windows.
...
...
@@ -893,7 +893,7 @@ INT WINAPI GetLocaleInfoW( LCID lcid, LCTYPE lctype, LPWSTR buffer, INT len )
lcid
=
ConvertDefaultLocale
(
lcid
);
lcflags
=
lctype
&
LOCALE_LOCALEINFOFLAGSMASK
;
lctype
&=
~
LOCALE_LOCALEINFOFLAGSMASK
;
lctype
&=
0xffff
;
/* first check for overrides in the registry */
...
...
@@ -1029,7 +1029,7 @@ BOOL WINAPI SetLocaleInfoW( LCID lcid, LCTYPE lctype, LPCWSTR data )
lcid
=
ConvertDefaultLocale
(
lcid
);
lctype
&=
~
LOCALE_LOCALEINFOFLAGSMASK
;
lctype
&=
0xffff
;
value
=
get_locale_value_name
(
lctype
);
if
(
!
data
||
!
value
)
...
...
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