diff options
Diffstat (limited to 'chrome_frame/urlmon_moniker.cc')
-rw-r--r-- | chrome_frame/urlmon_moniker.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome_frame/urlmon_moniker.cc b/chrome_frame/urlmon_moniker.cc index 0873f13..eba574e 100644 --- a/chrome_frame/urlmon_moniker.cc +++ b/chrome_frame/urlmon_moniker.cc @@ -450,9 +450,10 @@ HRESULT MonikerPatch::BindToObject(IMoniker_BindToObject_Fn original, hr = persist_moniker.QueryFrom(cf_doc); DCHECK(SUCCEEDED(hr)); hr = persist_moniker->Load(TRUE, me, bind_ctx, STGM_READ); - DCHECK(SUCCEEDED(hr)); - hr = persist_moniker.QueryInterface(iid, obj); - DCHECK(SUCCEEDED(hr)); + if (SUCCEEDED(hr)) { + hr = persist_moniker.QueryInterface(iid, obj); + DCHECK(SUCCEEDED(hr)); + } } else { DLOG(INFO) << " creating callback object"; CComObject<CFUrlmonBindStatusCallback>* callback = NULL; |