mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Optimize TranslateMessage() to only call win32k for messages that need to be translated
svn path=/trunk/; revision=30604
This commit is contained in:
parent
48a2026e7a
commit
258050487c
1 changed files with 11 additions and 1 deletions
|
@ -2067,7 +2067,17 @@ SendNotifyMessageW(
|
|||
BOOL STDCALL
|
||||
TranslateMessageEx(CONST MSG *lpMsg, DWORD unk)
|
||||
{
|
||||
return(NtUserTranslateMessage((LPMSG)lpMsg, (HKL)unk));
|
||||
switch (lpMsg->message)
|
||||
{
|
||||
case WM_KEYDOWN:
|
||||
case WM_KEYUP:
|
||||
case WM_SYSKEYDOWN:
|
||||
case WM_SYSKEYUP:
|
||||
return(NtUserTranslateMessage((LPMSG)lpMsg, (HKL)unk));
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue