summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorBen Adams <thundercat@illyriad.co.uk>2017-12-27 16:12:14 +0000
committerJan Kotas <jkotas@microsoft.com>2017-12-27 08:12:14 -0800
commitf8153eaaf918d336de0ca1071a65ab534169a8e0 (patch)
tree2fc03de55168b52c1e451935e97586239d414a98 /src/debug
parentaacefc0f47ba94f228281da9a4a8fe64a29e92da (diff)
downloadcoreclr-f8153eaaf918d336de0ca1071a65ab534169a8e0.tar.gz
coreclr-f8153eaaf918d336de0ca1071a65ab534169a8e0.tar.bz2
coreclr-f8153eaaf918d336de0ca1071a65ab534169a8e0.zip
Resolve race in ShimProxyCallback::AddRef (#15643)
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/di/shimcallback.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/debug/di/shimcallback.cpp b/src/debug/di/shimcallback.cpp
index f134df703a..e5c74bdb6f 100644
--- 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()
{