[winpr,comm] fix setting of SERIAL_EV_TXEMPTY

This commit is contained in:
akallabeth
2025-03-06 10:48:46 +01:00
parent 3186977e15
commit f11b343996

View File

@@ -1364,7 +1364,7 @@ static BOOL get_commstatus(WINPR_COMM* pComm, SERIAL_STATUS* pCommstatus)
#if defined(WINPR_HAVE_COMM_COUNTERS)
if (currentCounters.tx != pComm->counters.tx)
{
pComm->PendingEvents |= SERIAL_EV_TXEMPTY;
pComm->PendingEvents &= (uint32_t)~SERIAL_EV_TXEMPTY;
}
else
{