diff options
Diffstat (limited to 'chrome_frame/bho_loader.cc')
-rw-r--r-- | chrome_frame/bho_loader.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/bho_loader.cc b/chrome_frame/bho_loader.cc index 5b28831..2cf547d 100644 --- a/chrome_frame/bho_loader.cc +++ b/chrome_frame/bho_loader.cc @@ -81,7 +81,8 @@ void BHOLoader::OnHookEvent(DWORD event, HWND window) { HRESULT hr = browser->GetProperty(bho_clsid_as_string_bstr, &existing_bho); - if (existing_bho.vt != VT_DISPATCH || existing_bho.pdispVal == NULL) { + if (V_VT(&existing_bho) != VT_DISPATCH && + V_VT(&existing_bho) != VT_UNKNOWN) { // Step 4: // We have the IWebBrowser2 interface. Now create the BHO instance CComPtr<IObjectWithSite> bho_object; |