Skip to content
Snippets Groups Projects
Commit 32521abd authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

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

parent c4fdd2ea
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment