Added some TRACE statements.

This commit is contained in:
Paul Vriens 2005-02-25 13:58:37 +00:00 committed by Alexandre Julliard
parent 68abbc86e6
commit 8922da9ed4
1 changed files with 7 additions and 1 deletions

View File

@ -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.
*/