Commit 32521abd authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent c4fdd2ea
...@@ -359,6 +359,14 @@ DECL_HANDLER(set_serial_info) ...@@ -359,6 +359,14 @@ DECL_HANDLER(set_serial_info)
if(req->flags & SERIALINFO_SET_MASK) if(req->flags & SERIALINFO_SET_MASK)
{ {
serial->eventmask = req->eventmask; 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 */ /* comm port error status */
......
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