mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
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;
|
HRESULT hr = S_OK;
|
||||||
|
|
||||||
CComPtr<IOleClientSite> pOleClientSite = GetClientSte( );
|
CComPtr<IOleClientSite> pOleClientSite = GetClientSte( );
|
||||||
ASSERT( pOleClientSite );
|
if (pOleClientSite == NULL) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
CComPtr<IOleContainer> pOleContainer;
|
CComPtr<IOleContainer> pOleContainer;
|
||||||
hr = pOleClientSite->GetContainer(& pOleContainer );
|
hr = pOleClientSite->GetContainer(& pOleContainer );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user