// Initialize the context menu handler. IFACEMETHODIMP ComposerShellMenu::Initialize( LPCITEMIDLIST pidlFolder, LPDATAOBJECT pDataObj, HKEY hKeyProgID) { // We store the input for any subsequent QueryContextMenu call ClearStorage(); HRESULT hr = E_INVALIDARG; if (pidlFolder) { m_Folder = ILClone(pidlFolder); hr = m_Folder ? S_OK : E_OUTOFMEMORY; } else if (pDataObj) { m_Data = pDataObj; m_Data->AddRef(); hr = S_OK; } return hr; }
nsresult nsDOMStorageDBWrapper::ClearStorage(DOMStorageImpl* aStorage) { IMPL_FORWARDER(ClearStorage(aStorage)); }
ComposerShellMenu::~ComposerShellMenu(void) { ClearStorage(); InterlockedDecrement(&g_DllRef); }