VirtualBox

Changeset 56028 in vbox for trunk/src/VBox/Devices/Serial


Ignore:
Timestamp:
May 22, 2015 12:07:37 PM (10 years ago)
Author:
vboxsync
Message:

Devices/Serial: Fix incorrect expression which would never evaluate to true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DevSerial.cpp

    r50876 r56028  
    771771    if ((newMsr & UART_MSR_DCD) != (pThis->msr & UART_MSR_DCD))
    772772        newMsr |= UART_MSR_DDCD;
    773     if ((newMsr & UART_MSR_RI) == 1 && (pThis->msr & UART_MSR_RI) == 0)
     773    if ((newMsr & UART_MSR_RI) != 0 && (pThis->msr & UART_MSR_RI) == 0)
    774774        newMsr |= UART_MSR_TERI;
    775775    if ((newMsr & UART_MSR_DSR) != (pThis->msr & UART_MSR_DSR))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette