ole32.dll IsAccelerator

Aric Stewart aric at codeweavers.com
Mon Apr 30 14:20:20 CDT 2007


Accelerators, like for the menu ones, should not fire on the keyup 
message but should potentially fire on syschar.
---
  dlls/ole32/ole2.c |    3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)
-------------- next part --------------
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,
 	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-patches mailing list