mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Added support for the QS_ALLPOSTMESSAGE flag.
This commit is contained in:
parent
0dcf2a4589
commit
80b997a2cc
@ -236,11 +236,14 @@ DWORD WINAPI GetQueueStatus( UINT flags )
|
||||
{
|
||||
DWORD ret = 0;
|
||||
|
||||
if (flags & ~0xff)
|
||||
FIXME("QS_xxxx flags (%04x) are not handled\n", flags & ~0xff);
|
||||
if (flags & ~(QS_ALLINPUT | QS_ALLPOSTMESSAGE | QS_SMRESULT))
|
||||
{
|
||||
SetLastError( ERROR_INVALID_FLAGS );
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* check for pending X events */
|
||||
USER_Driver->pMsgWaitForMultipleObjectsEx( 0, NULL, 0, QS_ALLINPUT, 0 );
|
||||
USER_Driver->pMsgWaitForMultipleObjectsEx( 0, NULL, 0, flags, 0 );
|
||||
|
||||
SERVER_START_REQ( get_queue_status )
|
||||
{
|
||||
|
@ -471,7 +471,7 @@ static void remove_queue_message( struct msg_queue *queue, struct message *msg,
|
||||
if (list_empty( &queue->msg_list[kind] )) clear_queue_bits( queue, QS_SENDMESSAGE );
|
||||
break;
|
||||
case POST_MESSAGE:
|
||||
if (list_empty( &queue->msg_list[kind] )) clear_queue_bits( queue, QS_POSTMESSAGE );
|
||||
if (list_empty( &queue->msg_list[kind] )) clear_queue_bits( queue, QS_POSTMESSAGE|QS_ALLPOSTMESSAGE );
|
||||
break;
|
||||
}
|
||||
free_message( msg );
|
||||
@ -1420,7 +1420,7 @@ void post_message( user_handle_t win, unsigned int message,
|
||||
msg->data_size = 0;
|
||||
|
||||
list_add_tail( &thread->queue->msg_list[POST_MESSAGE], &msg->entry );
|
||||
set_queue_bits( thread->queue, QS_POSTMESSAGE );
|
||||
set_queue_bits( thread->queue, QS_POSTMESSAGE|QS_ALLPOSTMESSAGE );
|
||||
}
|
||||
release_object( thread );
|
||||
}
|
||||
@ -1592,7 +1592,7 @@ DECL_HANDLER(send_message)
|
||||
break;
|
||||
}
|
||||
list_add_tail( &recv_queue->msg_list[POST_MESSAGE], &msg->entry );
|
||||
set_queue_bits( recv_queue, QS_POSTMESSAGE );
|
||||
set_queue_bits( recv_queue, QS_POSTMESSAGE|QS_ALLPOSTMESSAGE );
|
||||
break;
|
||||
case MSG_HARDWARE:
|
||||
queue_hardware_message( recv_queue, msg );
|
||||
@ -1631,7 +1631,8 @@ DECL_HANDLER(get_message)
|
||||
if (req->flags & GET_MSG_SENT_ONLY) goto done; /* nothing else to check */
|
||||
|
||||
/* clear changed bits so we can wait on them if we don't find a message */
|
||||
queue->changed_bits = 0;
|
||||
if (req->get_first == 0 && req->get_last == ~0U) queue->changed_bits = 0;
|
||||
else queue->changed_bits &= QS_ALLPOSTMESSAGE;
|
||||
|
||||
/* then check for posted messages */
|
||||
if (get_posted_message( queue, get_win, req->get_first, req->get_last, req->flags, reply ))
|
||||
|
Loading…
Reference in New Issue
Block a user