Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: remoting/host/event_executor_win.cc

Issue 6542015: Fix key missing problem on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/event_executor_win.cc
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index b1fe052927ae619c537c9f48b768b0725767af43..980b1ad7a12970647e4df08f91d8ec09ebbe2c42 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698