VirtualBox

Changeset 20474 in vbox for trunk/src


Ignore:
Timestamp:
Jun 11, 2009 10:20:05 AM (16 years ago)
Author:
vboxsync
Message:

VBoxManage: don't complain if a hard disk could not be found before we didn't try to open it

File:
1 edited

Legend:

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

    r19638 r20474  
    11311131                if (!hardDisk)
    11321132                {
    1133                     CHECK_ERROR(a->virtualBox, FindHardDisk(Bstr(hdds[0]), hardDisk.asOutParam()));
     1133                    rc = a->virtualBox->FindHardDisk(Bstr(hdds[0]), hardDisk.asOutParam());
    11341134                    if (FAILED(rc))
    11351135                    {
     
    11641164                if (!hardDisk)
    11651165                {
    1166                     CHECK_ERROR(a->virtualBox, FindHardDisk(Bstr(hdds[1]), hardDisk.asOutParam()));
     1166                    rc = a->virtualBox->FindHardDisk(Bstr(hdds[1]), hardDisk.asOutParam());
    11671167                    if (FAILED(rc))
    11681168                    {
     
    11971197                if (!hardDisk)
    11981198                {
    1199                     CHECK_ERROR(a->virtualBox, FindHardDisk(Bstr(hdds[2]), hardDisk.asOutParam()));
     1199                    rc = a->virtualBox->FindHardDisk(Bstr(hdds[2]), hardDisk.asOutParam());
    12001200                    if (FAILED(rc))
    12011201                    {
     
    19181918                    if (!hardDisk)
    19191919                    {
    1920                         CHECK_ERROR(a->virtualBox, FindHardDisk(Bstr(hdds[i]), hardDisk.asOutParam()));
     1920                        rc =  a->virtualBox->FindHardDisk(Bstr(hdds[i]), hardDisk.asOutParam());
    19211921                        if (FAILED(rc))
    19221922                        {
     
    20072007                    if (!hardDisk)
    20082008                    {
    2009                         CHECK_ERROR(a->virtualBox, FindHardDisk(Bstr(hdds[i]), hardDisk.asOutParam()));
     2009                        rc = a->virtualBox->FindHardDisk(Bstr(hdds[i]), hardDisk.asOutParam());
    20102010                        if (FAILED(rc))
    20112011                        {
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