VirtualBox

Changeset 35827 in vbox


Ignore:
Timestamp:
Feb 3, 2011 8:56:06 AM (14 years ago)
Author:
vboxsync
Message:

VBoxManage: fixed error check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r35523 r35827  
    164164            if (fDelete)
    165165            {
    166                 ComPtr<IProgress> pProgress;
    167                 CHECK_ERROR(machine, Delete(ComSafeArrayAsInParam(aMedia), pProgress.asOutParam()));
    168                 CHECK_ERROR(pProgress, WaitForCompletion(-1));
     166                do
     167                {
     168                    ComPtr<IProgress> pProgress;
     169                    CHECK_ERROR_BREAK(machine, Delete(ComSafeArrayAsInParam(aMedia), pProgress.asOutParam()));
     170                    CHECK_ERROR(pProgress, WaitForCompletion(-1));
     171                } while (0);
    169172            }
    170173        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette