VirtualBox

Changeset 35241 in vbox


Ignore:
Timestamp:
Dec 20, 2010 1:14:55 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69088
Message:

Frontends/VBoxManage: more paranoid error handling for finding media in storageattach

File:
1 edited

Legend:

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

    r35239 r35241  
    397397                        rc = findMedium(a, pszMedium, deviceType, true /* fSilent */,
    398398                                        pExistingMedium);
    399                         if (pExistingMedium)
     399                        if (SUCCEEDED(rc) && pExistingMedium)
    400400                        {
    401401                            if (    (deviceType == DeviceType_DVD)
     
    545545                rc = findOrOpenMedium(a, pszMedium, devTypeRequested,
    546546                                      pMedium2Mount, NULL);
    547                 if (!pMedium2Mount)
     547                if (FAILED(rc) || !pMedium2Mount)
    548548                    throw Utf8StrFmt("Invalid UUID or filename \"%s\"", pszMedium);
    549549            }
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