projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aacefc0
)
Resolve race in ShimProxyCallback::AddRef (#15643)
author
Ben Adams
<thundercat@illyriad.co.uk>
Wed, 27 Dec 2017 16:12:14 +0000
(16:12 +0000)
committer
Jan Kotas
<jkotas@microsoft.com>
Wed, 27 Dec 2017 16:12:14 +0000
(08:12 -0800)
src/debug/di/shimcallback.cpp
patch
|
blob
|
history
diff --git
a/src/debug/di/shimcallback.cpp
b/src/debug/di/shimcallback.cpp
index
f134df7
..
e5c74bd
100644
(file)
--- a/
src/debug/di/shimcallback.cpp
+++ b/
src/debug/di/shimcallback.cpp
@@
-31,8
+31,7
@@
ShimProxyCallback::ShimProxyCallback(ShimProcess * pShim)
// Implement IUnknown
ULONG ShimProxyCallback::AddRef()
{
- InterlockedIncrement(&m_cRef);
- return m_cRef;
+ return InterlockedIncrement(&m_cRef);
}
ULONG ShimProxyCallback::Release()
{