Aric Stewart : ole32: Accelerators, like for the menu ones,
should not fire on the keyup message.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue May 1 07:39:22 CDT 2007
Module: wine
Branch: master
Commit: dc4c9da44fa43a29d40293e27085963743e7a08a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc4c9da44fa43a29d40293e27085963743e7a08a
Author: Aric Stewart <aric at codeweavers.com>
Date: Mon Apr 30 14:20:20 2007 -0500
ole32: Accelerators, like for the menu ones, should not fire on the keyup message.
---
dlls/ole32/ole2.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c
index 908eb09..127ef87 100644
--- a/dlls/ole32/ole2.c
+++ b/dlls/ole32/ole2.c
@@ -1713,9 +1713,8 @@ BOOL WINAPI IsAccelerator(HACCEL hAccel, int cAccelEntries, LPMSG lpMsg, WORD* l
return FALSE;
}
if((lpMsg->message != WM_KEYDOWN &&
- lpMsg->message != WM_KEYUP &&
lpMsg->message != WM_SYSKEYDOWN &&
- lpMsg->message != WM_SYSKEYUP &&
+ lpMsg->message != WM_SYSCHAR &&
lpMsg->message != WM_CHAR)) return FALSE;
lpAccelTbl = HeapAlloc(GetProcessHeap(), 0, cAccelEntries * sizeof(ACCEL));
if (NULL == lpAccelTbl)
More information about the wine-cvs
mailing list