[PATCH] user32: Use left shift instead of right shift (Coverity)
Marcus Meissner
meissner at suse.de
Thu May 5 08:54:33 CDT 2011
Hi,
Should be left shifted, otherwise it does not make sense.
CID 1456.
Ciao, Marcus
---
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));
}
--
1.7.1
More information about the wine-patches
mailing list