From 8922da9ed4284bfbe502e406ef7fd4d837b3ae9a Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Fri, 25 Feb 2005 13:58:37 +0000 Subject: [PATCH] Added some TRACE statements. --- dlls/ole32/storage32.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index 0e50dc76e3d..af46cce1d7a 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -298,7 +298,11 @@ ULONG WINAPI StorageBaseImpl_AddRef( IStorage* iface) { StorageBaseImpl *This = (StorageBaseImpl *)iface; - return InterlockedIncrement(&This->ref); + ULONG ref = InterlockedIncrement(&This->ref); + + TRACE("(%p) AddRef to %ld\n", This, ref); + + return ref; } /************************************************************************ @@ -318,6 +322,8 @@ ULONG WINAPI StorageBaseImpl_Release( */ ULONG ref = InterlockedDecrement(&This->ref); + TRACE("(%p) ReleaseRef to %ld\n", This, ref); + /* * If the reference count goes down to 0, perform suicide. */