VirtualBox

Changeset 56921 in vbox


Ignore:
Timestamp:
Jul 13, 2015 9:46:40 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101622
Message:

FE/VBoxManage: Fix possible crash when resizing a medium and the call to IMedium::Resize returns a Null progress object

File:
1 edited

Legend:

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

    r56118 r56921  
    697697            else if (rc == VBOX_E_NOT_SUPPORTED)
    698698                RTMsgError("Resize medium operation for this format is not implemented yet!");
     699            else if (!pProgress.isNull())
     700                CHECK_PROGRESS_ERROR(pProgress, ("Failed to resize medium"));
    699701            else
    700                 CHECK_PROGRESS_ERROR(pProgress, ("Failed to resize medium"));
     702                RTMsgError("Failed to resize medium!");
    701703        }
    702704    }
Note: See TracChangeset for help on using the changeset viewer.

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