Index: remoting/host/daemon_process_win.cc |
diff --git a/remoting/host/daemon_process_win.cc b/remoting/host/daemon_process_win.cc |
index 6d651ac321328aa0bf44ba42b394de83c27ce066..1ac3e7f4ad66db6fa00a9bbde835480a5aea88b5 100644 |
--- a/remoting/host/daemon_process_win.cc |
+++ b/remoting/host/daemon_process_win.cc |
@@ -293,7 +293,7 @@ bool DaemonProcessWin::InitializePairingRegistry() { |
network_process_.Get(), pairing_registry_privileged_key_); |
IPC::PlatformFileForTransit unprivileged_key = GetRegistryKeyForTransit( |
network_process_.Get(), pairing_registry_unprivileged_key_); |
- if (!(privileged_key && unprivileged_key)) |
+ if (!(privileged_key.IsValid() && unprivileged_key.IsValid())) |
return false; |
// Initialize the pairing registry in the network process. This has to be done |