From 52b1a2af6723d5ce51ce84c54a32cfcf07ac47c7 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 30 Dec 2009 23:49:31 +0000 Subject: [PATCH] fix crash on page reload --- direct/src/plugin_activex/PPInterface.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/plugin_activex/PPInterface.cpp b/direct/src/plugin_activex/PPInterface.cpp index 7f92aa170d..99464e0b2b 100644 --- a/direct/src/plugin_activex/PPInterface.cpp +++ b/direct/src/plugin_activex/PPInterface.cpp @@ -125,7 +125,9 @@ HRESULT PPInterface::GetHtmlDocDispatch( CComPtr& pDispScript ) HRESULT hr = S_OK; CComPtr pOleClientSite = GetClientSte( ); - ASSERT( pOleClientSite ); + if (pOleClientSite == NULL) { + return E_FAIL; + } CComPtr pOleContainer; hr = pOleClientSite->GetContainer(& pOleContainer );