Changeset 39794 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 18, 2012 1:17:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r39659 r39794 1019 1019 { 1020 1020 *ppszTranslated = RTStrDup(szTranslated); 1021 #if def DEBUG1021 #if 0 1022 1022 RTPrintf("Root: %s, Source: %s, Dest: %s, Translated: %s\n", 1023 1023 pszSourceRoot, pszSource, pszDest, *ppszTranslated); … … 1319 1319 else 1320 1320 { 1321 rc = showProgress(progress); 1322 CHECK_PROGRESS_ERROR(progress, ("File copy failed")); 1321 if (pContext->fVerbose) 1322 { 1323 rc = showProgress(progress); 1324 CHECK_PROGRESS_ERROR(progress, ("File copy failed")); 1325 } 1323 1326 if (FAILED(rc)) 1324 1327 vrc = ctrlPrintError(pContext->pGuest, COM_IIDOF(IGuest)); … … 1557 1560 case GuestDirEntryType_Directory: 1558 1561 { 1562 Assert(!strName.isEmpty()); 1563 1559 1564 /* Skip "." and ".." entries. */ 1560 1565 if ( !strName.compare(Bstr(".")) … … 1603 1608 case GuestDirEntryType_File: 1604 1609 { 1610 Assert(!strName.isEmpty()); 1611 1605 1612 Utf8Str strFile(strName); 1606 1613 if ( pszFilter … … 1650 1657 1651 1658 default: 1659 RTPrintf("Warning: Directory entry of type %ld not handled, skipping ...\n", 1660 enmType); 1652 1661 break; 1653 1662 } … … 1657 1666 } 1658 1667 1659 if (FAILED(hr)) 1660 { 1661 if (hr != E_ABORT) 1662 rc = ctrlPrintError(pContext->pGuest, COM_IIDOF(IGuest)); 1668 if (RT_UNLIKELY(FAILED(hr))) 1669 { 1670 switch (hr) 1671 { 1672 case E_ABORT: /* No more directory entries left to process. */ 1673 break; 1674 1675 case VBOX_E_FILE_ERROR: /* Current entry cannot be accessed to 1676 to missing rights. */ 1677 { 1678 RTPrintf("Warning: Cannot access \"%s\", skipping ...\n", 1679 szCurDir); 1680 break; 1681 } 1682 1683 default: 1684 rc = ctrlPrintError(pContext->pGuest, COM_IIDOF(IGuest)); 1685 break; 1686 } 1663 1687 } 1664 1688 … … 2345 2369 else 2346 2370 { 2347 rc = showProgress(progress); 2348 CHECK_PROGRESS_ERROR(progress, ("Guest additions update failed")); 2371 if (fVerbose) 2372 { 2373 rc = showProgress(progress); 2374 CHECK_PROGRESS_ERROR(progress, ("Guest additions update failed")); 2375 } 2349 2376 if (FAILED(rc)) 2350 2377 vrc = ctrlPrintError(guest, COM_IIDOF(IGuest));
Note:
See TracChangeset
for help on using the changeset viewer.