fix crash on page reload
This commit is contained in:
parent
b49af84728
commit
52b1a2af67
|
|
@ -125,7 +125,9 @@ HRESULT PPInterface::GetHtmlDocDispatch( CComPtr<IDispatch>& pDispScript )
|
|||
HRESULT hr = S_OK;
|
||||
|
||||
CComPtr<IOleClientSite> pOleClientSite = GetClientSte( );
|
||||
ASSERT( pOleClientSite );
|
||||
if (pOleClientSite == NULL) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
CComPtr<IOleContainer> pOleContainer;
|
||||
hr = pOleClientSite->GetContainer(& pOleContainer );
|
||||
|
|
|
|||
Loading…
Reference in New Issue