windows-nt/Source/XPSP1/NT/com/ole32/stg/exp/seekptr.cxx

40 lines
1 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: seekptr.cxx
//
// Contents: Seek pointer non-inline implementation
//
// History: 11-Aug-92 PhilipLa Created.
//
//--------------------------------------------------------------------------
#include <exphead.cxx>
#pragma hdrstop
#include <seekptr.hxx>
//+--------------------------------------------------------------
//
// Member: CSeekPointer::Release, public
//
// Synopsis: Decrements _cReferences and delete's on noref
//
// History: 30-Apr-92 DrewB Created
//
//---------------------------------------------------------------
void CSeekPointer::vRelease(void)
{
LONG lRet;
olDebugOut((DEB_ITRACE, "In CSeekPointer::Release()\n"));
olAssert(_cReferences > 0);
lRet = InterlockedDecrement(&_cReferences);
if (lRet == 0)
delete this;
olDebugOut((DEB_ITRACE, "Out CSeekPointer::Release()\n"));
}