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.
50 lines
1.4 KiB
50 lines
1.4 KiB
// Stdcooki.cpp : Implementation of CCookie and related classes
|
|
|
|
#include "stdcooki.h"
|
|
#include "stdutils.h" // FCompareMachineNames
|
|
|
|
//
|
|
// CHasMachineName
|
|
//
|
|
|
|
// returns <0, 0 or >0
|
|
HRESULT CHasMachineName::CompareMachineNames( CHasMachineName& refHasMachineName, int* pnResult )
|
|
{
|
|
/*
|
|
// This code is intended to help debug a problem and can be removed later
|
|
LPCWSTR pszTargetServer = QueryTargetServer();
|
|
LPCWSTR pszTargetServer2 = refHasMachineName.QueryTargetServer();
|
|
if (NULL != pszTargetServer && ::IsBadStringPtr(pszTargetServer,MAX_PATH))
|
|
{
|
|
ASSERT(FALSE);
|
|
// repeat operation so that we can find problem
|
|
pszTargetServer = QueryTargetServer();
|
|
}
|
|
if (NULL != pszTargetServer2 && ::IsBadStringPtr(pszTargetServer2,MAX_PATH))
|
|
{
|
|
ASSERT(FALSE);
|
|
// repeat operation so that we can find problem
|
|
pszTargetServer2 = refHasMachineName.QueryTargetServer();
|
|
}
|
|
// This code is intended to help debug a problem and can be removed later
|
|
*/
|
|
|
|
if (NULL != pnResult) // JonN 2002/03/28
|
|
*pnResult = ::CompareMachineNames( QueryTargetServer(),
|
|
refHasMachineName.QueryTargetServer() );
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
//
|
|
// CCookie
|
|
//
|
|
|
|
CCookie::~CCookie()
|
|
{
|
|
ReleaseScopeChildren();
|
|
|
|
// The views of this cookie should already have been closed
|
|
// ReleaseResultChildren();
|
|
ASSERT( 0 == m_nResultCookiesRefcount );
|
|
}
|