VirtualBox

Changeset 8313 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 23, 2008 7:13:13 AM (17 years ago)
Author:
vboxsync
Message:

Devices/VMMDev: preserved saved state compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r8312 r8313  
    20242024{
    20252025    VMMDevState *pData = PDMINS2DATA(pDevIns, VMMDevState*);
    2026     if (u32Version != VMMDEV_SSM_VERSION)
     2026    if (   SSM_VERSION_MAJOR_CHANGED(u32Version, VMMDEV_SSM_VERSION)
     2027        || (SSM_VERSION_MINOR(u32Version) < 6))
    20272028        return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION;
    20282029    SSMR3GetU32(pSSMHandle, &pData->hypervisorSize);
     
    20452046    SSMR3GetU32(pSSMHandle, &pData->guestCaps);
    20462047
    2047     SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestWidth);
    2048     SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestHeight);
     2048    if (   SSM_VERSION_MAJOR(u32Version) >  0
     2049        || SSM_VERSION_MINOR(u32Version) >= 7)
     2050    {
     2051        SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestWidth);
     2052        SSMR3GetU32(pSSMHandle, &pData->u32MaxGuestHeight);
     2053    }
    20492054
    20502055#ifdef VBOX_HGCM
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