summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 13:15:35 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 13:15:35 +0000
commit2152727254e65392fe2984c3402a68a1c7353c01 (patch)
tree7db77c28353d3769feed30abc93fd53a33478536 /remoting/host
parenta61fda5566acfcec22ed5961b8fa2d4c882be767 (diff)
downloadchromium_src-2152727254e65392fe2984c3402a68a1c7353c01.zip
chromium_src-2152727254e65392fe2984c3402a68a1c7353c01.tar.gz
chromium_src-2152727254e65392fe2984c3402a68a1c7353c01.tar.bz2
Fix key missing problem on windows
Initialize INPUT struct. The dwFlags member of INPUT struct is not properly initialized so sometimes the key event is interpreted as a key up and thus keys are missed. BUG=70167 TEST=keyboard input is fine on windows Review URL: http://codereview.chromium.org/6542015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75385 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/event_executor_win.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index b1fe052..980b1ad 100644
--- a/remoting/host/event_executor_win.cc
+++ b/remoting/host/event_executor_win.cc
@@ -61,6 +61,8 @@ void EventExecutorWin::HandleKey(const KeyEvent* event) {
int scan_code = MapVirtualKeyEx(key, MAPVK_VK_TO_VSC_EX, hkl);
INPUT input;
+ memset(&input, 0, sizeof(input));
+
input.type = INPUT_KEYBOARD;
input.ki.time = 0;
input.ki.wVk = key;