doc->GetBaseURL(*getter_AddRefs(baseURI));
doc->GetBaseURL(getter_AddRefs(baseURI));
    virtual HRESULT STDMETHODCALLTYPE CreateMoniker(         /* [in] */ LPOLESTR szName,        /* [in] */ IBindCtx *pBC,        /* [out] */ IMoniker **ppmk,        /* [in] */ DWORD dwReserved)    {    	if (!szName || !ppmk) return E_POINTER;		if (!*szName) return E_INVALIDARG;		*ppmk = NULL;        // Get the BASE url        CComPtr<IMoniker> baseURLMoniker;        nsCOMPtr<nsIDocument> doc(do_QueryInterface(mDOMDocument));        if (doc)        {            nsCOMPtr<nsIURI> baseURI;            doc->GetBaseURL(*getter_AddRefs(baseURI));            nsCAutoString spec;            if (baseURI &&                NS_SUCCEEDED(baseURI->GetSpec(spec)))            {                USES_CONVERSION;                if (FAILED(CreateURLMoniker(NULL, T2CW(spec.get()), &baseURLMoniker)))                    return E_UNEXPECTED;            }        }        // Make the moniker		HRESULT hr = CreateURLMoniker(baseURLMoniker, szName, ppmk);		if (SUCCEEDED(hr) && !*ppmk)			hr = E_FAIL;		return hr;    }