Added some TRACE statements.
This commit is contained in:
parent
68abbc86e6
commit
8922da9ed4
|
@ -298,7 +298,11 @@ ULONG WINAPI StorageBaseImpl_AddRef(
|
||||||
IStorage* iface)
|
IStorage* iface)
|
||||||
{
|
{
|
||||||
StorageBaseImpl *This = (StorageBaseImpl *)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);
|
ULONG ref = InterlockedDecrement(&This->ref);
|
||||||
|
|
||||||
|
TRACE("(%p) ReleaseRef to %ld\n", This, ref);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the reference count goes down to 0, perform suicide.
|
* If the reference count goes down to 0, perform suicide.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue