summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_active_document.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/chrome_active_document.cc')
-rw-r--r--chrome_frame/chrome_active_document.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc
index faab456..da3da63 100644
--- a/chrome_frame/chrome_active_document.cc
+++ b/chrome_frame/chrome_active_document.cc
@@ -519,6 +519,12 @@ HRESULT ChromeActiveDocument::ActiveXDocActivate(LONG verb) {
SetFocus();
} else {
m_hWnd = Create(parent_window, position_rect, 0, 0, WS_EX_CLIENTEDGE);
+ if (!IsWindow()) {
+ // This might happen if the automation server couldn't be
+ // instantiated. If so, a NOTREACHED() will have already been hit.
+ DLOG(ERROR) << "Failed to create Ax window";
+ return AtlHresultFromLastError();
+ }
}
ScopedComPtr<IWebBrowser2> web_browser2;