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
905daf25
Commit
905daf25
authored
Sep 24, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 25, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Pass pthreadlocinfo to set_lc_locale_name function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
parent
d04c895b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
locale.c
dlls/msvcrt/locale.c
+10
-10
No files found.
dlls/msvcrt/locale.c
View file @
905daf25
...
...
@@ -830,9 +830,9 @@ void CDECL MSVCRT__free_locale(MSVCRT__locale_t locale)
}
#if _MSVCR_VER >= 110
static
inline
BOOL
set_lc_locale_name
(
MSVCRT_
_locale_t
loc
,
int
cat
)
static
inline
BOOL
set_lc_locale_name
(
MSVCRT_
pthreadlocinfo
locinfo
,
int
cat
)
{
LCID
lcid
=
loc
->
loc
info
->
lc_handle
[
cat
];
LCID
lcid
=
locinfo
->
lc_handle
[
cat
];
WCHAR
buf
[
100
];
int
len
;
...
...
@@ -843,14 +843,14 @@ static inline BOOL set_lc_locale_name(MSVCRT__locale_t loc, int cat)
if
(
LocaleNameToLCID
(
buf
,
0
)
!=
lcid
)
len
=
LCIDToLocaleName
(
lcid
,
buf
,
100
,
0
);
if
(
!
len
||
!
(
loc
->
loc
info
->
lc_name
[
cat
]
=
MSVCRT_malloc
(
len
*
sizeof
(
MSVCRT_wchar_t
))))
if
(
!
len
||
!
(
locinfo
->
lc_name
[
cat
]
=
MSVCRT_malloc
(
len
*
sizeof
(
MSVCRT_wchar_t
))))
return
FALSE
;
memcpy
(
loc
->
loc
info
->
lc_name
[
cat
],
buf
,
len
*
sizeof
(
MSVCRT_wchar_t
));
memcpy
(
locinfo
->
lc_name
[
cat
],
buf
,
len
*
sizeof
(
MSVCRT_wchar_t
));
return
TRUE
;
}
#else
static
inline
BOOL
set_lc_locale_name
(
MSVCRT_
_locale_t
loc
,
int
cat
)
static
inline
BOOL
set_lc_locale_name
(
MSVCRT_
pthreadlocinfo
locinfo
,
int
cat
)
{
return
TRUE
;
}
...
...
@@ -1013,7 +1013,7 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
loc
->
locinfo
->
lc_collate_cp
=
loc
->
locinfo
->
lc_id
[
MSVCRT_LC_COLLATE
].
wCodePage
;
if
(
!
set_lc_locale_name
(
loc
,
MSVCRT_LC_COLLATE
))
{
if
(
!
set_lc_locale_name
(
loc
->
locinfo
,
MSVCRT_LC_COLLATE
))
{
MSVCRT__free_locale
(
loc
);
return
NULL
;
}
...
...
@@ -1063,7 +1063,7 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
for
(
j
=
cp_info
.
LeadByte
[
i
];
j
<=
cp_info
.
LeadByte
[
i
+
1
];
j
++
)
loc
->
locinfo
->
ctype1
[
j
+
1
]
|=
MSVCRT__LEADBYTE
;
if
(
!
set_lc_locale_name
(
loc
,
MSVCRT_LC_CTYPE
))
{
if
(
!
set_lc_locale_name
(
loc
->
locinfo
,
MSVCRT_LC_CTYPE
))
{
MSVCRT__free_locale
(
loc
);
return
NULL
;
}
...
...
@@ -1301,7 +1301,7 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
}
#endif
if
(
!
set_lc_locale_name
(
loc
,
MSVCRT_LC_MONETARY
))
{
if
(
!
set_lc_locale_name
(
loc
->
locinfo
,
MSVCRT_LC_MONETARY
))
{
MSVCRT__free_locale
(
loc
);
return
NULL
;
}
...
...
@@ -1434,7 +1434,7 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
}
#endif
if
(
!
set_lc_locale_name
(
loc
,
MSVCRT_LC_NUMERIC
))
{
if
(
!
set_lc_locale_name
(
loc
->
locinfo
,
MSVCRT_LC_NUMERIC
))
{
MSVCRT__free_locale
(
loc
);
return
NULL
;
}
...
...
@@ -1476,7 +1476,7 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
return
NULL
;
}
if
(
!
set_lc_locale_name
(
loc
,
MSVCRT_LC_TIME
))
{
if
(
!
set_lc_locale_name
(
loc
->
locinfo
,
MSVCRT_LC_TIME
))
{
MSVCRT__free_locale
(
loc
);
return
NULL
;
}
...
...
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