mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
user32: Make GetMessage and PeekMessage patchable.
This commit is contained in:
parent
91c5c0bab3
commit
c293424319
@ -3442,7 +3442,7 @@ void WINAPI PostQuitMessage( INT exit_code )
|
||||
/***********************************************************************
|
||||
* PeekMessageW (USER32.@)
|
||||
*/
|
||||
BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT flags )
|
||||
BOOL WINAPI DECLSPEC_HOTPATCH PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT flags )
|
||||
{
|
||||
MSG msg;
|
||||
|
||||
@ -3474,7 +3474,7 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
|
||||
/***********************************************************************
|
||||
* PeekMessageA (USER32.@)
|
||||
*/
|
||||
BOOL WINAPI PeekMessageA( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags )
|
||||
BOOL WINAPI DECLSPEC_HOTPATCH PeekMessageA( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags )
|
||||
{
|
||||
if (get_pending_wmchar( msg, first, last, (flags & PM_REMOVE) )) return TRUE;
|
||||
if (!PeekMessageW( msg, hwnd, first, last, flags )) return FALSE;
|
||||
@ -3486,7 +3486,7 @@ BOOL WINAPI PeekMessageA( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
|
||||
/***********************************************************************
|
||||
* GetMessageW (USER32.@)
|
||||
*/
|
||||
BOOL WINAPI GetMessageW( MSG *msg, HWND hwnd, UINT first, UINT last )
|
||||
BOOL WINAPI DECLSPEC_HOTPATCH GetMessageW( MSG *msg, HWND hwnd, UINT first, UINT last )
|
||||
{
|
||||
HANDLE server_queue = get_server_queue_handle();
|
||||
unsigned int mask = QS_POSTMESSAGE | QS_SENDMESSAGE; /* Always selected */
|
||||
@ -3519,7 +3519,7 @@ BOOL WINAPI GetMessageW( MSG *msg, HWND hwnd, UINT first, UINT last )
|
||||
/***********************************************************************
|
||||
* GetMessageA (USER32.@)
|
||||
*/
|
||||
BOOL WINAPI GetMessageA( MSG *msg, HWND hwnd, UINT first, UINT last )
|
||||
BOOL WINAPI DECLSPEC_HOTPATCH GetMessageA( MSG *msg, HWND hwnd, UINT first, UINT last )
|
||||
{
|
||||
if (get_pending_wmchar( msg, first, last, TRUE )) return TRUE;
|
||||
GetMessageW( msg, hwnd, first, last );
|
||||
|
Loading…
Reference in New Issue
Block a user