Stefan Dösinger : user32: Make GetMessage and PeekMessage patchable.

Alexandre Julliard julliard at winehq.org
Thu Aug 26 11:42:07 CDT 2010


Module: wine
Branch: master
Commit: c2934243194b0c0109dc7437d207b7eddd5f0ced
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c2934243194b0c0109dc7437d207b7eddd5f0ced

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Aug 25 13:46:03 2010 +0200

user32: Make GetMessage and PeekMessage patchable.

---

 dlls/user32/message.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/message.c b/dlls/user32/message.c
index 312d54c..b073e1c 100644
--- a/dlls/user32/message.c
+++ b/dlls/user32/message.c
@@ -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 );




More information about the wine-cvs mailing list