Commit b7121813 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

user32: Pack messages sent with SendNotifyMessage().

Allows Wine internal messages with pointer arguments to be sent asynchronously. Signed-off-by: 's avatarBrendan Shanks <bshanks@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 69996b61
...@@ -2829,6 +2829,9 @@ static int peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags, ...@@ -2829,6 +2829,9 @@ static int peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags,
break; break;
case MSG_NOTIFY: case MSG_NOTIFY:
info.flags = ISMEX_NOTIFY; info.flags = ISMEX_NOTIFY;
if (!unpack_message( info.msg.hwnd, info.msg.message, &info.msg.wParam,
&info.msg.lParam, &buffer, size ))
continue;
break; break;
case MSG_CALLBACK: case MSG_CALLBACK:
info.flags = ISMEX_CALLBACK; info.flags = ISMEX_CALLBACK;
...@@ -3128,7 +3131,7 @@ static BOOL put_message_in_queue( const struct send_message_info *info, size_t * ...@@ -3128,7 +3131,7 @@ static BOOL put_message_in_queue( const struct send_message_info *info, size_t *
} }
memset( &data, 0, sizeof(data) ); memset( &data, 0, sizeof(data) );
if (info->type == MSG_OTHER_PROCESS) if (info->type == MSG_OTHER_PROCESS || info->type == MSG_NOTIFY)
{ {
*reply_size = pack_message( info->hwnd, info->msg, info->wparam, info->lparam, &data ); *reply_size = pack_message( info->hwnd, info->msg, info->wparam, info->lparam, &data );
if (data.count == -1) if (data.count == -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment