VirtualBox

Changeset 106109 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 20, 2024 9:33:33 AM (2 months ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: 'VBoxManage showvminfo VM' bails out attempting to
display the Secure Boot status for new VMs which have been configured to
use EFI but haven't been booted yet so have no <VM>.nvram file.
ticketref:22178

File:
1 edited

Legend:

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

    r106061 r106109  
    14391439    {
    14401440        ComPtr<IUefiVariableStore> uefiVarStore;
    1441         CHECK_ERROR_RET(nvramStore, COMGETTER(UefiVariableStore)(uefiVarStore.asOutParam()), hrc);
    1442         SHOW_BOOLEAN_PROP(uefiVarStore, SecureBootEnabled, "SecureBoot", Info::tr("UEFI Secure Boot:"));
     1441        hrc = nvramStore->COMGETTER(UefiVariableStore)(uefiVarStore.asOutParam());
     1442        if (SUCCEEDED(hrc))
     1443            SHOW_BOOLEAN_PROP(uefiVarStore, SecureBootEnabled, "SecureBoot", Info::tr("UEFI Secure Boot:"));
    14431444    }
    14441445    SHOW_BOOLEAN_PROP_EX(platform,   RTCUseUTC, "rtcuseutc", Info::tr("RTC:"), "UTC", Info::tr("local time"));
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