You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
716 B
34 lines
716 B
/*
|
|
* @(#)_reference.cxx 1.0 6/3/97
|
|
*
|
|
* Copyright (c) 1997 - 1999 Microsoft Corporation. All rights reserved. *
|
|
*/
|
|
#include "stdinc.h"
|
|
#include "core.hxx"
|
|
#pragma hdrstop
|
|
|
|
void _assign(IUnknown ** ppref, IUnknown * pref)
|
|
{
|
|
IUnknown *punkRef = *ppref;
|
|
|
|
// NTRAID#NTBUG9 - 571792 - jonwis - 2002/04/25 - Dead code removal
|
|
#ifdef FUSION_USE_OLD_XML_PARSER_SOURCE
|
|
if (pref) ((Object *)pref)->AddRef();
|
|
(*ppref) = (Object *)pref;
|
|
#else // fusion xml parser
|
|
if (pref) pref->AddRef();
|
|
(*ppref) = pref;
|
|
|
|
#endif
|
|
|
|
if (punkRef) punkRef->Release();
|
|
}
|
|
|
|
void _release(IUnknown ** ppref)
|
|
{
|
|
if (*ppref)
|
|
{
|
|
(*ppref)->Release();
|
|
*ppref = NULL;
|
|
}
|
|
}
|