Changeset 30610 in vbox
- Timestamp:
- Jul 5, 2010 12:47:57 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63336
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r30093 r30610 7 7 8 8 /* 9 * Copyright (C) 2006-20 08Oracle Corporation9 * Copyright (C) 2006-2010 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 563 563 /** @todo Copy void* buffer contents! */ 564 564 565 /* Was progress cancel ed before? */566 BOOL fCancel ed;565 /* Was progress cancelled before? */ 566 BOOL fCancelled; 567 567 ComAssert(it->second.pProgress.isNotNull()); 568 it->second.pProgress->COMGETTER(Canceled)(&fCancel ed);568 it->second.pProgress->COMGETTER(Canceled)(&fCancelled); 569 569 570 570 Utf8Str errMsg; 571 if (!fCancel ed)571 if (!fCancelled) 572 572 { 573 573 /* Do progress handling. */ … … 642 642 } 643 643 else 644 errMsg = Utf8StrFmt(Guest::tr("Process execution cancel ed"));644 errMsg = Utf8StrFmt(Guest::tr("Process execution cancelled")); 645 645 646 646 if (!it->second.pProgress->getCompleted()) 647 647 { 648 648 if ( errMsg.length() 649 || fCancel ed) /* If cancelled we have to report E_FAIL! */649 || fCancelled) /* If cancelled we have to report E_FAIL! */ 650 650 { 651 651 it->second.pProgress->notifyComplete(VBOX_E_IPRT_ERROR, COM_IIDOF(IGuest), … … 697 697 } 698 698 699 /* Was progress cancel ed before? */700 BOOL fCancel ed;699 /* Was progress cancelled before? */ 700 BOOL fCancelled; 701 701 ComAssert(it->second.pProgress.isNotNull()); 702 it->second.pProgress->COMGETTER(Canceled)(&fCancel ed);703 704 if (!fCancel ed)702 it->second.pProgress->COMGETTER(Canceled)(&fCancelled); 703 704 if (!fCancelled) 705 705 it->second.pProgress->notifyComplete(S_OK); 706 706 else … … 761 761 if (!fCompleted) 762 762 { 763 /* Only cancel if not cancel ed before! */764 BOOL fCancel ed;765 if (SUCCEEDED(it->second.pProgress->COMGETTER(Canceled)(&fCancel ed)) && !fCanceled)763 /* Only cancel if not cancelled before! */ 764 BOOL fCancelled; 765 if (SUCCEEDED(it->second.pProgress->COMGETTER(Canceled)(&fCancelled)) && !fCancelled) 766 766 it->second.pProgress->Cancel(); 767 767 768 768 /* To get waitForCompletion notified we have to notify it if necessary. */ 769 769 it->second.pProgress->notifyComplete(VBOX_E_IPRT_ERROR, COM_IIDOF(IGuest), 770 (CBSTR)Guest::getComponentName(), Guest::tr("The operation was cancel ed during shutdown"));770 (CBSTR)Guest::getComponentName(), Guest::tr("The operation was cancelled during shutdown")); 771 771 } 772 772 /* … … 999 999 */ 1000 1000 CallbackMapIter it = getCtrlCallbackContextByID(uContextID); 1001 BOOL fCancel ed = FALSE;1001 BOOL fCancelled = FALSE; 1002 1002 if (it != mCallbackMap.end()) 1003 1003 { … … 1011 1011 if (SUCCEEDED(rc)) 1012 1012 { 1013 /* Was the operation cancel ed by one of the parties? */1014 rc = it->second.pProgress->COMGETTER(Canceled)(&fCancel ed);1013 /* Was the operation cancelled by one of the parties? */ 1014 rc = it->second.pProgress->COMGETTER(Canceled)(&fCancelled); 1015 1015 if (FAILED(rc)) throw rc; 1016 1016 1017 if (!fCancel ed)1017 if (!fCancelled) 1018 1018 { 1019 1019 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); … … 1059 1059 } 1060 1060 } 1061 else /* Operation was cancel ed. */1061 else /* Operation was cancelled. */ 1062 1062 vrc = VERR_CANCELLED; 1063 1063 } … … 1099 1099 { 1100 1100 rc = setError(VBOX_E_IPRT_ERROR, 1101 tr("The execution operation was cancel ed"));1101 tr("The execution operation was cancelled")); 1102 1102 } 1103 1103 else if (vrc == VERR_PERMISSION_DENIED) … … 1248 1248 */ 1249 1249 CallbackMapIter it = getCtrlCallbackContextByID(uContextID); 1250 BOOL fCancel ed = FALSE;1250 BOOL fCancelled = FALSE; 1251 1251 if (it != mCallbackMap.end()) 1252 1252 { … … 1257 1257 if (FAILED(rc)) throw rc; 1258 1258 1259 /* Was the operation cancel ed by one of the parties? */1260 rc = it->second.pProgress->COMGETTER(Canceled)(&fCancel ed);1259 /* Was the operation cancelled by one of the parties? */ 1260 rc = it->second.pProgress->COMGETTER(Canceled)(&fCancelled); 1261 1261 if (FAILED(rc)) throw rc; 1262 1262 1263 if (!fCancel ed)1263 if (!fCancelled) 1264 1264 { 1265 1265 BOOL fCompleted; … … 1290 1290 vrc = VERR_TIMEOUT; 1291 1291 } 1292 else /* Operation was cancel ed. */1292 else /* Operation was cancelled. */ 1293 1293 { 1294 1294 vrc = VERR_CANCELLED; … … 1310 1310 { 1311 1311 rc = setError(VBOX_E_IPRT_ERROR, 1312 tr("The output operation was cancel ed"));1312 tr("The output operation was cancelled")); 1313 1313 } 1314 1314 else
Note:
See TracChangeset
for help on using the changeset viewer.