VirtualBox

Ignore:
Timestamp:
May 11, 2015 2:59:17 PM (10 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxControl: fix a conditional test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r54611 r55804  
    988988        /* check if the mode is OK */
    989989        if (   (xres > (1 << 16))
    990             && (yres > (1 << 16))
    991             && (   (bpp != 16)
    992                 || (bpp != 24)
    993                 || (bpp != 32)))
     990            || (yres > (1 << 16))
     991            || (   (bpp != 16)
     992                && (bpp != 24)
     993                && (bpp != 32)))
    994994            break;
    995995
     
    10991099    /** @todo better check including xres mod 8 = 0! */
    11001100    if (   (xres > (1 << 16))
    1101         && (yres > (1 << 16))
    1102         && (   (bpp != 16)
    1103             || (bpp != 24)
    1104             || (bpp != 32)))
     1101        || (yres > (1 << 16))
     1102        || (   (bpp != 16)
     1103            && (bpp != 24)
     1104            && (bpp != 32)))
    11051105    {
    11061106        VBoxControlError("invalid mode specified!\n");
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