summaryrefslogtreecommitdiffstats
path: root/remoting/host/local_input_monitor_win.cc
diff options
context:
space:
mode:
authorzhchbin@gmail.com <zhchbin@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-19 10:43:22 +0000
committerzhchbin@gmail.com <zhchbin@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-19 10:43:22 +0000
commitfd80f69d358b8b55c65895b402d4600f46beb5a8 (patch)
treec46db451ed1f56be41e40a84f8733dc1f3a83ac0 /remoting/host/local_input_monitor_win.cc
parentad8c3254bf52590ea093a3a41df907edd14a1a55 (diff)
downloadchromium_src-fd80f69d358b8b55c65895b402d4600f46beb5a8.zip
chromium_src-fd80f69d358b8b55c65895b402d4600f46beb5a8.tar.gz
chromium_src-fd80f69d358b8b55c65895b402d4600f46beb5a8.tar.bz2
If RIDEV_REMOVE is set and the hwndTarget member should be set to NULL.
According to the Remarks section of msdn[0]: If RIDEV_REMOVE is set and the hwndTarget member is not set to NULL, then parameter validation will fail. [0]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms645565(v=vs.85).aspx BUG=NONE Review URL: https://chromiumcodereview.appspot.com/22875024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/local_input_monitor_win.cc')
-rw-r--r--remoting/host/local_input_monitor_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/host/local_input_monitor_win.cc b/remoting/host/local_input_monitor_win.cc
index 2796bf0..2459c0f 100644
--- a/remoting/host/local_input_monitor_win.cc
+++ b/remoting/host/local_input_monitor_win.cc
@@ -148,7 +148,7 @@ void LocalInputMonitorWin::Core::StopOnUiThread() {
device.dwFlags = RIDEV_REMOVE;
device.usUsagePage = kGenericDesktopPage;
device.usUsage = kMouseUsage;
- device.hwndTarget = window_->hwnd();
+ device.hwndTarget = NULL;
// The error is harmless, ignore it.
RegisterRawInputDevices(&device, 1, sizeof(device));