Changeset 53529 in vbox for trunk/src/VBox
- Timestamp:
- Dec 12, 2014 8:41:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp
r53528 r53529 1608 1608 for (unsigned i = 0; i < RT_ELEMENTS(pCtx->aModeHints); ++i) 1609 1609 { 1610 rc = SSMR3PutMem (pSSM, pCtx->aModeHints[i],1610 rc = SSMR3PutMem (pSSM, &pCtx->aModeHints[i], 1611 1611 sizeof(VBVAMODEHINT)); 1612 1612 AssertRCReturn(rc, rc); … … 1828 1828 { 1829 1829 rc = SSMR3Skip(pSSM, cbExtra); 1830 AssertRCReturn(rc, rc); 1831 } 1832 uint32_t cModeHints, cbModeHints; 1833 rc = SSMR3GetU32 (pSSM, &cModeHints); 1834 AssertRCReturn(rc, rc); 1835 rc = SSMR3GetU32 (pSSM, &cbModeHints); 1836 AssertRCReturn(rc, rc); 1837 memset(&pCtx->aModeHints, ~0, sizeof(pCtx->aModeHints)); 1838 unsigned iHint; 1839 for (iHint = 0; iHint < cModeHints; ++iHint) 1840 { 1841 if ( cbModeHints <= sizeof(VBVAMODEHINT) 1842 && iHint < RT_ELEMENTS(pCtx->aModeHints)) 1843 rc = SSMR3GetMem(pSSM, &pCtx->aModeHints[iHint], 1844 cbModeHints); 1845 else 1846 rc = SSMR3Skip(pSSM, cbModeHints); 1830 1847 AssertRCReturn(rc, rc); 1831 1848 }
Note:
See TracChangeset
for help on using the changeset viewer.