VirtualBox

Changeset 56785 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 3, 2015 1:56:23 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101435
Message:

DevVGA: correctly restore VBVA state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r56438 r56785  
    569569    }
    570570
    571     if (   parms.off32Data != 0
    572         || parms.off32Free != 0
    573         || parms.indexRecordFirst != 0
    574         || parms.indexRecordFree != 0
    575         || parms.cbPartialWriteThreshold >= parms.cbData
     571    if (!fRestored)
     572    {
     573        if (   parms.off32Data != 0
     574            || parms.off32Free != 0
     575            || parms.indexRecordFirst != 0
     576            || parms.indexRecordFree != 0)
     577        {
     578            return VERR_INVALID_PARAMETER;
     579        }
     580    }
     581
     582    if (   parms.cbPartialWriteThreshold >= parms.cbData
    576583        || parms.cbPartialWriteThreshold == 0)
    577584    {
     
    599606        pVBVAData->guest.pu8Data           = &pVBVA->au8Data[0];
    600607        pVBVAData->u32VBVAOffset           = u32Offset;
    601         pVBVAData->off32Data               = 0;
    602         pVBVAData->indexRecordFirst        = 0;
     608        pVBVAData->off32Data               = parms.off32Data;
     609        pVBVAData->indexRecordFirst        = parms.indexRecordFirst;
    603610        pVBVAData->cbPartialWriteThreshold = parms.cbPartialWriteThreshold;
    604611        pVBVAData->cbData                  = parms.cbData;
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