Skip to content

Commit

Permalink
Fixed huge keys values sending
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Moroz authored and Andrii Moroz committed Aug 2, 2013
1 parent f48eae8 commit cb7f35e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vnc/vncclient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@ void VNCClient::sendKeyEvent(QKeyEvent *key)

quint32 keyValue = convertQtKeyToX11Key(key);
char value[4];
value[0] = (char)(keyValue&0xff000000)>>24;
value[1] = (char)(keyValue&0x00ff0000)>>16;
value[2] = (char)(keyValue&0x0000ff00)>>8;
value[3] = (char)keyValue&0x000000ff;
value[0] = (char)((keyValue&0xff000000)>>24);
value[1] = (char)((keyValue&0x00ff0000)>>16);
value[2] = (char)((keyValue&0x0000ff00)>>8);
value[3] = (char)(keyValue&0x000000ff);
keyMsg.insert(4, value[0]);
keyMsg.insert(5, value[1]);
keyMsg.insert(6, value[2]);
Expand Down

0 comments on commit cb7f35e

Please sign in to comment.