Changeset 95639 in vbox for trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
- Timestamp:
- Jul 14, 2022 8:30:45 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r95476 r95639 867 867 data.strStateFile.setNull(); 868 868 869 HRESULT rc = m->pMachine->i_saveHardware(data.hardware, &data.debugging, &data.autostart); 870 if (FAILED(rc)) return rc; 871 872 return S_OK; 869 return m->pMachine->i_saveHardware(data.hardware, &data.debugging, &data.autostart, data.recordingSettings); 873 870 } 874 871 … … 1164 1161 if (FAILED(rc)) return rc; 1165 1162 1163 unconst(mRecordingSettings).createObject(); 1164 rc = mRecordingSettings->initCopy(this, pMachine->mRecordingSettings); 1165 if (FAILED(rc)) return rc; 1166 1166 1167 unconst(mTrustedPlatformModule).createObject(); 1167 1168 rc = mTrustedPlatformModule->initCopy(this, pMachine->mTrustedPlatformModule); … … 1170 1171 unconst(mNvramStore).createObject(); 1171 1172 rc = mNvramStore->initCopy(this, pMachine->mNvramStore); 1172 if (FAILED(rc)) return rc;1173 1174 unconst(mRecordingSettings).createObject();1175 rc = mRecordingSettings->initCopy(this, pMachine->mRecordingSettings);1176 1173 if (FAILED(rc)) return rc; 1177 1174 … … 1247 1244 * @param pDbg debuging settings 1248 1245 * @param pAutostart autostart settings 1246 * @param recording recording settings 1249 1247 * @param aSnapshotId snapshot ID of this snapshot machine 1250 1248 * @param aStateFilePath file where the execution state is saved … … 1257 1255 const settings::Debugging *pDbg, 1258 1256 const settings::Autostart *pAutostart, 1257 const settings::RecordingSettings &recording, 1259 1258 IN_GUID aSnapshotId, 1260 1259 const Utf8Str &aStateFilePath) … … 1302 1301 mBIOSSettings->init(this); 1303 1302 1303 unconst(mRecordingSettings).createObject(); 1304 mRecordingSettings->init(this); 1305 1304 1306 unconst(mTrustedPlatformModule).createObject(); 1305 1307 mTrustedPlatformModule->init(this); … … 1308 1310 mNvramStore->init(this); 1309 1311 1310 unconst(mRecordingSettings).createObject();1311 mRecordingSettings->init(this);1312 1313 1312 unconst(mGraphicsAdapter).createObject(); 1314 1313 mGraphicsAdapter->init(this); … … 1346 1345 1347 1346 /* load hardware and storage settings */ 1348 HRESULT rc = i_loadHardware(NULL, &mSnapshotId, hardware, pDbg, pAutostart); 1349 1350 if (SUCCEEDED(rc)) 1347 HRESULT hrc = i_loadHardware(NULL, &mSnapshotId, hardware, pDbg, pAutostart, recording); 1348 if (SUCCEEDED(hrc)) 1351 1349 /* commit all changes made during the initialization */ 1352 1350 i_commit(); /// @todo r=dj why do we need a commit in init?!? this is very expensive … … 1355 1353 1356 1354 /* Confirm a successful initialization when it's the case */ 1357 if (SUCCEEDED( rc))1355 if (SUCCEEDED(hrc)) 1358 1356 autoInitSpan.setSucceeded(); 1359 1357 1360 1358 LogFlowThisFuncLeave(); 1361 return rc;1359 return hrc; 1362 1360 } 1363 1361
Note:
See TracChangeset
for help on using the changeset viewer.