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
c23db594
Commit
c23db594
authored
Mar 03, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix an invalid usage of InterlockedCompareExchange.
parent
68528519
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
marshal.c
dlls/ole32/marshal.c
+3
-2
No files found.
dlls/ole32/marshal.c
View file @
c23db594
...
...
@@ -805,11 +805,12 @@ static HRESULT proxy_manager_construct(
static
inline
void
proxy_manager_set_context
(
struct
proxy_manager
*
This
,
MSHCTX
dest_context
,
void
*
dest_context_data
)
{
MSHCTX
old_dest_context
=
This
->
dest_context
;
MSHCTX
old_dest_context
;
MSHCTX
new_dest_context
;
do
{
old_dest_context
=
This
->
dest_context
;
new_dest_context
=
old_dest_context
;
/* "stronger" values overwrite "weaker" values. stronger values are
* ones that disable more optimisations */
...
...
@@ -853,7 +854,7 @@ static inline void proxy_manager_set_context(struct proxy_manager *This, MSHCTX
if
(
old_dest_context
==
new_dest_context
)
break
;
old
_dest_context
=
InterlockedCompareExchange
((
PLONG
)
&
This
->
dest_context
,
new_dest_context
,
old_dest_context
);
new
_dest_context
=
InterlockedCompareExchange
((
PLONG
)
&
This
->
dest_context
,
new_dest_context
,
old_dest_context
);
}
while
(
new_dest_context
!=
old_dest_context
);
if
(
dest_context_data
)
...
...
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