Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit f8153ea

Browse files
benaadamsjkotas
authored andcommitted
Resolve race in ShimProxyCallback::AddRef (#15643)
1 parent aacefc0 commit f8153ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/debug/di/shimcallback.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ ShimProxyCallback::ShimProxyCallback(ShimProcess * pShim)
3131
// Implement IUnknown
3232
ULONG ShimProxyCallback::AddRef()
3333
{
34-
InterlockedIncrement(&m_cRef);
35-
return m_cRef;
34+
return InterlockedIncrement(&m_cRef);
3635
}
3736
ULONG ShimProxyCallback::Release()
3837
{

0 commit comments

Comments
 (0)