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
a9dfe7ab
Commit
a9dfe7ab
authored
Nov 25, 2020
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Reimplement _configthreadlocale function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bcd0096d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
30 deletions
+7
-30
locale.c
dlls/msvcrt/locale.c
+7
-30
No files found.
dlls/msvcrt/locale.c
View file @
a9dfe7ab
...
...
@@ -2128,40 +2128,17 @@ int CDECL _configthreadlocale(int type)
thread_data_t
*
data
=
msvcrt_get_thread_data
();
int
ret
;
if
(
!
data
)
return
-
1
;
ret
=
(
data
->
locale_flags
&
LOCALE_THREAD
?
MSVCRT__ENABLE_PER_THREAD_LOCALE
:
MSVCRT__DISABLE_PER_THREAD_LOCALE
);
if
(
ret
==
type
)
return
ret
;
if
(
data
->
locale_flags
&
LOCALE_FREE
)
{
free_locinfo
(
data
->
locinfo
);
free_mbcinfo
(
data
->
mbcinfo
);
data
->
locale_flags
&=
~
LOCALE_FREE
;
}
if
(
type
==
MSVCRT__ENABLE_PER_THREAD_LOCALE
)
{
MSVCRT__locale_tstruct
locale
;
get_current_locale_noalloc
(
&
locale
);
data
->
loc
info
=
locale
.
locinfo
;
data
->
mbcinfo
=
locale
.
mbcinfo
;
data
->
locale_flags
=
LOCALE_FREE
|
LOCALE_THREAD
;
return
ret
;
}
if
(
type
==
MSVCRT__ENABLE_PER_THREAD_LOCALE
)
data
->
loc
ale_flags
|=
LOCALE_THREAD
;
else
if
(
type
==
MSVCRT__DISABLE_PER_THREAD_LOCALE
)
data
->
locale_flags
&=
~
LOCALE_THREAD
;
else
if
(
type
)
ret
=
-
1
;
if
(
type
==
MSVCRT__DISABLE_PER_THREAD_LOCALE
)
{
data
->
locale_flags
=
0
;
return
ret
;
}
if
(
!
type
)
return
ret
;
return
-
1
;
return
ret
;
}
#endif
...
...
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