Fixed problem with GetIDispatch
git-svn-id: svn://10.0.0.236/trunk@45054 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user