VirtualBox

Changeset 106209 in vbox for trunk/src


Ignore:
Timestamp:
Oct 2, 2024 9:05:12 PM (2 months ago)
Author:
vboxsync
Message:

VBoxManage: Fix breakage of "list vms" and "showvminfo" for inaccessible VMs due to misplaced API calls. The inaccessible VM checking must be done first, otherwise just meaningless errors are shown. bugref:10384

File:
1 edited

Legend:

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

    r106109 r106209  
    11131113        pSession->COMGETTER(Console)(pConsole.asOutParam());
    11141114
    1115     ComPtr<IPlatform> platform;
    1116     CHECK_ERROR_RET(machine, COMGETTER(Platform)(platform.asOutParam()), hrc);
    1117     ComPtr<IPlatformProperties> platformProperties;
    1118     CHECK_ERROR_RET(platform, COMGETTER(Properties)(platformProperties.asOutParam()), hrc);
    1119 
    1120     PlatformArchitecture_T platformArch;
    1121     CHECK_ERROR_RET(platform, COMGETTER(Architecture)(&platformArch), hrc);
    1122 
    1123     ComPtr<IFirmwareSettings> firmwareSettings;
    1124     CHECK_ERROR_RET(machine, COMGETTER(FirmwareSettings)(firmwareSettings.asOutParam()), hrc);
    1125 
    11261115    char szNm[80];
    11271116    char szValue[256];
     
    11851174        return S_OK;
    11861175    }
     1176
     1177    ComPtr<IPlatform> platform;
     1178    CHECK_ERROR_RET(machine, COMGETTER(Platform)(platform.asOutParam()), hrc);
     1179    ComPtr<IPlatformProperties> platformProperties;
     1180    CHECK_ERROR_RET(platform, COMGETTER(Properties)(platformProperties.asOutParam()), hrc);
     1181
     1182    PlatformArchitecture_T platformArch;
     1183    CHECK_ERROR_RET(platform, COMGETTER(Architecture)(&platformArch), hrc);
     1184
     1185    ComPtr<IFirmwareSettings> firmwareSettings;
     1186    CHECK_ERROR_RET(machine, COMGETTER(FirmwareSettings)(firmwareSettings.asOutParam()), hrc);
    11871187
    11881188    if (details == VMINFO_COMPACT)
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