summaryrefslogtreecommitdiffstats
path: root/ceee/ie/common/chrome_frame_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ceee/ie/common/chrome_frame_host.cc')
-rw-r--r--ceee/ie/common/chrome_frame_host.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/ceee/ie/common/chrome_frame_host.cc b/ceee/ie/common/chrome_frame_host.cc
index 907b1f9..39ffd6b 100644
--- a/ceee/ie/common/chrome_frame_host.cc
+++ b/ceee/ie/common/chrome_frame_host.cc
@@ -165,13 +165,15 @@ HRESULT ChromeFrameHost::GetEnabledExtensions() {
}
}
-HRESULT ChromeFrameHost::GetSessionId(int *session_id) {
+HRESULT ChromeFrameHost::GetSessionId(int* session_id) {
if (chrome_frame_) {
CComQIPtr<IChromeFrameInternal> chrome_frame_internal_(chrome_frame_);
- if (chrome_frame_internal_)
+ if (chrome_frame_internal_) {
return chrome_frame_internal_->getSessionId(session_id);
- else
- return kInvalidChromeSessionId;
+ } else {
+ *session_id = kInvalidChromeSessionId;
+ return S_OK;
+ }
}
NOTREACHED();
return E_UNEXPECTED;