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