Module: wine Branch: master Commit: cfe4c7fde96f169c299838fef5192e89a036781f URL: http://source.winehq.org/git/wine.git/?a=commit;h=cfe4c7fde96f169c299838fef5...
Author: Marcus Meissner meissner@suse.de Date: Thu May 5 15:54:33 2011 +0200
user32: Use left shift instead of right shift (Coverity).
---
dlls/user32/tests/dialog.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c index 736c99d..1dd5884 100644 --- a/dlls/user32/tests/dialog.c +++ b/dlls/user32/tests/dialog.c @@ -209,7 +209,7 @@ static BOOL CreateWindows (HINSTANCE hinst) /* Form the lParam of a WM_KEYDOWN message */ static DWORD KeyDownData (int repeat, int scancode, int extended, int wasdown) { - return ((repeat & 0x0000FFFF) | ((scancode & 0x00FF) >> 16) | + return ((repeat & 0x0000FFFF) | ((scancode & 0x00FF) << 16) | (extended ? 0x01000000 : 0) | (wasdown ? 0x40000000 : 0)); }