diff options
Diffstat (limited to 'chrome_frame/chrome_frame_npapi.cc')
-rw-r--r-- | chrome_frame/chrome_frame_npapi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/chrome_frame_npapi.cc b/chrome_frame/chrome_frame_npapi.cc index 84e2bc7..0baab27 100644 --- a/chrome_frame/chrome_frame_npapi.cc +++ b/chrome_frame/chrome_frame_npapi.cc @@ -399,7 +399,7 @@ bool ChromeFrameNPAPI::Invoke(NPObject* header, NPIdentifier name, const NPVariant* args, uint32_t arg_count, NPVariant* result) { ChromeFrameNPAPI* plugin_instance = ChromeFrameInstanceFromNPObject(header); - if (!plugin_instance && (plugin_instance->automation_client_.get())) + if (!plugin_instance || !plugin_instance->automation_client_.get()) return false; bool success = false; |