Changeset 34883 in vbox for trunk/src/VBox
- Timestamp:
- Dec 9, 2010 12:50:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r34881 r34883 442 442 { 443 443 if (osType.contains("64", Utf8Str::CaseInsensitive)) 444 {445 LogRel(("Automatic update of Windows guest (64-bit) selected\n"));446 444 installerImage = "VBOXWINDOWSADDITIONS_AMD64.EXE"; 447 }448 445 else 449 {450 LogRel(("Automatic update of Windows guest (32-bit) selected\n"));451 446 installerImage = "VBOXWINDOWSADDITIONS_X86.EXE"; 452 }453 447 /* Since the installers are located in the root directory, 454 448 * no further path processing needs to be done (yet). */ … … 694 688 695 689 LogRel(("Guest Additions update is running ...\n")); 696 while (SUCCEEDED(progressInstaller->COMGETTER(Completed(&fCompleted)))) 690 while ( SUCCEEDED(progressInstaller->COMGETTER(Completed(&fCompleted))) 691 && !fCompleted) 697 692 { 693 if ( SUCCEEDED(aTask->progress->COMGETTER(Canceled(&fCanceled))) 694 && fCanceled) 695 { 696 progressInstaller->Cancel(); 697 break; 698 } 698 699 /* Progress canceled by Main API? */ 699 700 if ( SUCCEEDED(progressInstaller->COMGETTER(Canceled(&fCanceled))) … … 702 703 break; 703 704 } 704 if (fCompleted)705 break;706 705 RTThreadSleep(1); 707 706 } … … 727 726 } 728 727 } 729 else if (fCanceled) 728 else if ( SUCCEEDED(progressInstaller->COMGETTER(Canceled(&fCanceled))) 729 && fCanceled) 730 730 { 731 731 rc = TaskGuest::setProgressErrorInfo(VBOX_E_IPRT_ERROR, aTask->progress, … … 734 734 } 735 735 else 736 AssertMsgFailed(("Unknown Guest Additions update status!\n")); 736 { 737 /* Guest Additions update was canceled by the user. */ 738 } 737 739 } 740 else 741 rc = TaskGuest::setProgressErrorInfo(rc, aTask->progress, pGuest); 738 742 } 739 743 else
Note:
See TracChangeset
for help on using the changeset viewer.