Finish any pending WaitCommEvents if the event mask is set to 0.

oldstable
Mike McCormack 2002-03-12 19:19:57 +00:00 committed by Alexandre Julliard
parent c4fdd2ea24
commit 32521abd4b
1 changed files with 8 additions and 0 deletions

View File

@ -359,6 +359,14 @@ DECL_HANDLER(set_serial_info)
if(req->flags & SERIALINFO_SET_MASK)
{
serial->eventmask = req->eventmask;
if(!serial->eventmask)
{
while(serial->wait_q.head)
{
async_notify(serial->wait_q.head, STATUS_SUCCESS);
destroy_async(serial->wait_q.head);
}
}
}
/* comm port error status */