mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Better QUEUE_FlushMessages().
This commit is contained in:
parent
4a150e7753
commit
d37b69cdc8
1 changed files with 9 additions and 2 deletions
|
@ -435,8 +435,15 @@ void QUEUE_FlushMessages( HQUEUE16 hQueue )
|
|||
MESSAGEQUEUE *senderQ = (MESSAGEQUEUE*)GlobalLock16( queue->hSendingTask);
|
||||
QSMCTRL* CtrlPtr = queue->smResultCurrent;
|
||||
|
||||
TRACE(msg,"Flushing queue %04x:\n", hQueue );
|
||||
|
||||
while( senderQ )
|
||||
{
|
||||
if( !CtrlPtr )
|
||||
CtrlPtr = senderQ->smResultInit;
|
||||
|
||||
TRACE(msg,"\tfrom queue %04x, smResult %08x\n", queue->hSendingTask, (unsigned)CtrlPtr );
|
||||
|
||||
if( !(queue->hSendingTask = senderQ->hPrevSendingTask) )
|
||||
queue->wakeBits &= ~QS_SENDMESSAGE;
|
||||
QUEUE_SetWakeBit( senderQ, QS_SMPARAMSFREE );
|
||||
|
@ -448,8 +455,8 @@ void QUEUE_FlushMessages( HQUEUE16 hQueue )
|
|||
senderQ->smResult = queue->smResultCurrent;
|
||||
QUEUE_SetWakeBit( senderQ, QS_SMRESULT);
|
||||
|
||||
if( (senderQ = (MESSAGEQUEUE*)GlobalLock16( queue->hSendingTask)) )
|
||||
CtrlPtr = senderQ->smResultInit;
|
||||
senderQ = (MESSAGEQUEUE*)GlobalLock16( queue->hSendingTask);
|
||||
CtrlPtr = NULL;
|
||||
}
|
||||
queue->InSendMessageHandle = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue