On 10/28/2012 04:59, [email protected] wrote:
From: Max TenEyck Woodbury <[email protected]>

---
  dlls/shlwapi/thread.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/thread.c b/dlls/shlwapi/thread.c
index eb2c35d..43e0433 100644
--- a/dlls/shlwapi/thread.c
+++ b/dlls/shlwapi/thread.c
@@ -157,7 +157,7 @@ static ULONG WINAPI threadref_AddRef(IUnknown *iface)
    threadref * This = impl_from_IUnknown(iface);
TRACE("(%p)\n", This);
-  return InterlockedIncrement(This->ref);
+  return InterlockedIncrement(&This->ref);
  }
static ULONG WINAPI threadref_Release(IUnknown *iface)
@@ -167,7 +167,7 @@ static ULONG WINAPI threadref_Release(IUnknown *iface)
TRACE("(%p)\n", This); - refcount = InterlockedDecrement(This->ref);
+  refcount = InterlockedDecrement(&This->ref);
    if (!refcount)
        HeapFree(GetProcessHeap(), 0, This);
Did you try to build this?


Reply via email to