VirtualBox

Changeset 54792 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 16, 2015 4:04:24 PM (10 years ago)
Author:
vboxsync
Message:

DisplayUtils: use >= when check sSSMDisplayVerX in readSavedGuestScreenInfo() (addition to r98984).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/DisplayUtils.cpp

    r54790 r54792  
    164164        if (RT_SUCCESS(vrc))
    165165        {
    166             if (   uVersion == sSSMDisplayVer2
    167                 || uVersion == sSSMDisplayVer3
    168                 || uVersion == sSSMDisplayVer4
    169                 || uVersion == sSSMDisplayVer5)
     166            /* Starting from sSSMDisplayVer2 we have pu32Width and pu32Height.
     167             * Starting from sSSMDisplayVer3 we have all the rest of parameters we need. */
     168            if (uVersion >= sSSMDisplayVer2)
    170169            {
    171170                uint32_t cMonitors;
     
    189188                    else
    190189                    {
    191                         Assert(uVersion == sSSMDisplayVer3);
    192190                        /* Skip all previous monitors, each 8 uint32_t, and the first 3 uint32_t entries. */
    193191                        SSMR3Skip(pSSM, u32ScreenId * 8 * sizeof(uint32_t) + 3 * sizeof(uint32_t));
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