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
40d4fbe4
Commit
40d4fbe4
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: Simplify get_current_locale_noalloc implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a7f124eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
locale.c
dlls/msvcrt/locale.c
+3
-12
No files found.
dlls/msvcrt/locale.c
View file @
40d4fbe4
...
...
@@ -1174,20 +1174,11 @@ MSVCRT__locale_t CDECL get_current_locale_noalloc(MSVCRT__locale_t locale)
{
thread_data_t
*
data
=
msvcrt_get_thread_data
();
if
(
!
data
||
!
(
data
->
locale_flags
&
LOCALE_THREAD
))
{
_lock_locales
();
*
locale
=
*
MSVCRT_locale
;
}
else
{
locale
->
locinfo
=
data
->
locinfo
;
locale
->
mbcinfo
=
data
->
mbcinfo
;
}
update_thread_locale
(
data
);
locale
->
locinfo
=
data
->
locinfo
;
locale
->
mbcinfo
=
data
->
mbcinfo
;
grab_locinfo
(
locale
->
locinfo
);
if
(
locale
->
locinfo
==
MSVCRT_locale
->
locinfo
)
_unlock_locales
();
InterlockedIncrement
(
&
locale
->
mbcinfo
->
refcount
);
return
locale
;
}
...
...
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