Changeset 24949 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 25, 2009 12:17:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r24946 r24949 2637 2637 try 2638 2638 { 2639 mptrCancelableProgress = pProgress; 2640 2639 2641 /* 2640 2642 * If we fail here it means a PowerDown() call happened on another … … 2670 2672 delete pTask; 2671 2673 NOREF(rc); 2674 mptrCancelableProgress.setNull(); 2672 2675 } 2673 2676 … … 7355 7358 // 3) saving the state of the virtual machine (here, in the VM process, if the machine is online) 7356 7359 7357 bool fBeganTakingSnapshot = false; 7358 bool fSuspenededBySave = false; 7359 7360 AutoCaller autoCaller(pTask->mConsole); 7361 CheckComRCReturnRC(autoCaller.rc()); 7362 7363 AutoWriteLock alock(pTask->mConsole); 7360 Console *that = pTask->mConsole; 7361 bool fBeganTakingSnapshot = false; 7362 bool fSuspenededBySave = false; 7363 7364 AutoCaller autoCaller(that); 7365 if (FAILED(autoCaller.rc())) 7366 { 7367 that->mptrCancelableProgress.setNull(); 7368 return autoCaller.rc(); 7369 } 7370 7371 AutoWriteLock alock(that); 7364 7372 7365 7373 HRESULT rc = S_OK; 7366 7367 Console *that = pTask->mConsole;7368 7374 7369 7375 try … … 7374 7380 * others from accessing this machine) 7375 7381 */ 7376 rc = pTask->mConsole->mControl->BeginTakingSnapshot(that,7377 7378 7379 7380 7381 7382 rc = that->mControl->BeginTakingSnapshot(that, 7383 pTask->bstrName, 7384 pTask->bstrDescription, 7385 pTask->mProgress, 7386 pTask->fTakingSnapshotOnline, 7387 pTask->bstrSavedStateFile.asOutParam()); 7382 7388 if (FAILED(rc)) 7383 7389 throw rc; … … 7425 7431 if (!pTask->mProgress->notifyPointOfNoReturn()) 7426 7432 throw setError(E_FAIL, tr("Cancelled")); 7433 that->mptrCancelableProgress.setNull(); 7427 7434 7428 7435 // STEP 4: reattach hard disks
Note:
See TracChangeset
for help on using the changeset viewer.