Changeset 18121 in vbox for trunk/src/VBox/Main/HardDiskImpl.cpp
- Timestamp:
- Mar 20, 2009 2:46:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r18115 r18121 1327 1327 ? BstrFmt (tr ("Creating fixed hard disk storage unit '%ls'"), m.locationFull.raw()) 1328 1328 : BstrFmt (tr ("Creating dynamic hard disk storage unit '%ls'"), m.locationFull.raw()), 1329 FALSE /* aCancelable */);1329 TRUE /* aCancelable */); 1330 1330 CheckComRCReturnRC (rc); 1331 1331 … … 1457 1457 BstrFmt (tr ("Creating clone hard disk '%ls'"), 1458 1458 target->m.locationFull.raw()), 1459 FALSE /* aCancelable */);1459 TRUE /* aCancelable */); 1460 1460 CheckComRCThrowRC (rc); 1461 1461 … … 1545 1545 BstrFmt (tr ("Creating flattened clone hard disk '%ls'"), 1546 1546 target->m.locationFull.raw()), 1547 FALSE /* aCancelable */);1547 TRUE /* aCancelable */); 1548 1548 CheckComRCThrowRC (rc); 1549 1549 … … 2459 2459 BstrFmt (tr ("Creating differencing hard disk storage unit '%ls'"), 2460 2460 aTarget->m.locationFull.raw()), 2461 FALSE /* aCancelable */);2461 TRUE /* aCancelable */); 2462 2462 CheckComRCReturnRC (rc); 2463 2463 } … … 2705 2705 BstrFmt (tr ("Merging hard disk '%s' to '%s'"), 2706 2706 name().raw(), aChain->target()->name().raw()), 2707 FALSE /* aCancelable */);2707 TRUE /* aCancelable */); 2708 2708 CheckComRCReturnRC (rc); 2709 2709 } … … 3435 3435 /* update the progress object, capping it at 99% as the final percent 3436 3436 * is used for additional operations like setting the UUIDs and similar. */ 3437 that->mm.vdProgress->notifyProgress (RT_MIN (uPercent, 99)); 3437 HRESULT rc = that->mm.vdProgress->notifyProgress (uPercent * 99 / 100); 3438 if (FAILED(rc)) 3439 { 3440 if (rc == E_FAIL) 3441 return VERR_CANCELLED; 3442 else 3443 return VERR_INVALID_STATE; 3444 } 3438 3445 } 3439 3446
Note:
See TracChangeset
for help on using the changeset viewer.