Leaked source code of windows server 2003
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.
 
 
 
 
 
 

25 lines
609 B

#include "private.h"
#include "varutil.h"
#include "varcomp.h"
//+---------------------------------------------------------------------------
//
// CicVarCmp
//
//----------------------------------------------------------------------------
HRESULT CicVarCmp(VARIANT *pvar1, VARIANT *pvar2)
{
if (V_VT(pvar1) != V_VT(pvar2))
return S_FALSE;
FCmp comp = VariantCompare.GetComparator( (VARENUM) pvar1->vt );
if (!comp)
return S_FALSE;
if (!comp( (PROPVARIANT const &)*pvar1, (PROPVARIANT const &)*pvar2 ))
return S_OK;
return S_FALSE;
}