Fixed problem with GetIDispatch

git-svn-id: svn://10.0.0.236/trunk@45054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie
1999-08-29 15:59:12 +00:00
parent 357f525807
commit 847a76fa18

View File

@@ -45,7 +45,13 @@ HRESULT CIEHtmlDocument::GetIDispatch(IDispatch **pDispatch)
{
return E_INVALIDARG;
}
return QueryInterface(IID_IDispatch, (void **) pDispatch);
IDispatch *pDisp = (IDispatch *) this;
NG_ASSERT(pDisp);
pDisp->AddRef();
*pDispatch = pDisp;
return S_OK;
}