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
8a7f817d
Commit
8a7f817d
authored
Feb 03, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use pointer exchange to set demangled name instead of section lock.
parent
d8d963a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
cpp.c
dlls/msvcrt/cpp.c
+1
-8
No files found.
dlls/msvcrt/cpp.c
View file @
8a7f817d
...
...
@@ -611,7 +611,6 @@ const char * __thiscall MSVCRT_type_info_name(type_info * _this)
*/
char
*
name
=
__unDName
(
0
,
_this
->
mangled
+
1
,
0
,
MSVCRT_malloc
,
MSVCRT_free
,
0x2800
);
if
(
name
)
{
unsigned
int
len
=
strlen
(
name
);
...
...
@@ -620,17 +619,11 @@ const char * __thiscall MSVCRT_type_info_name(type_info * _this)
while
(
len
&&
name
[
--
len
]
==
' '
)
name
[
len
]
=
'\0'
;
_mlock
(
_EXIT_LOCK2
);
if
(
_this
->
name
)
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
_this
->
name
,
name
,
NULL
))
{
/* Another thread set this member since we checked above - use it */
MSVCRT_free
(
name
);
}
else
_this
->
name
=
name
;
_munlock
(
_EXIT_LOCK2
);
}
}
TRACE
(
"(%p) returning %s
\n
"
,
_this
,
_this
->
name
);
...
...
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