summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/plugin/host_script_object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
index 5743a96..334df058 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -689,7 +689,7 @@ bool HostNPScriptObject::UpdateDaemonConfig(const NPVariant* args,
reinterpret_cast<base::DictionaryValue*>(config.release()));
ScopedRefNPObject callback_obj(ObjectFromNPVariant(args[1]));
- if (callback_obj.get()) {
+ if (!callback_obj.get()) {
SetException("updateDaemonConfig: invalid callback parameter");
return false;
}