VirtualBox

Changeset 103532 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Feb 22, 2024 2:05:31 PM (11 months ago)
Author:
vboxsync
Message:

VBoxManage: Add subcommand for enabling UEFI secure boot (and show the status in the VM infos).
Main/NVRAMStore+UefiVariableStore: Tweaks to allow reading the UEFI secure boot state when the VM isn't mutable.
doc/manual: Update VBoxManage manpage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AutoStateDep.h

    r98263 r103532  
    7373              mRegistered(FALSE)
    7474        {
    75             Assert(aThat);
    76             mRC = aThat->i_addStateDependency(taDepType, &mMachineState,
    77                                             &mRegistered);
     75            if (RT_VALID_PTR(aThat))
     76                mRC = aThat->i_addStateDependency(taDepType, &mMachineState,
     77                                                  &mRegistered);
    7878        }
    7979        ~AutoStateDependency()
    8080        {
    81             if (SUCCEEDED(mRC))
     81            if (RT_VALID_PTR(mThat) && SUCCEEDED(mRC))
    8282                mThat->i_releaseStateDependency();
    8383        }
     
    8888        {
    8989            AssertReturnVoid(SUCCEEDED(mRC));
    90             mThat->i_releaseStateDependency();
     90            if (RT_VALID_PTR(mThat))
     91                mThat->i_releaseStateDependency();
    9192            mRC = E_FAIL;
    9293        }
     
    9899        {
    99100            AssertReturnVoid(!SUCCEEDED(mRC));
    100             mRC = mThat->i_addStateDependency(taDepType, &mMachineState,
    101                                             &mRegistered);
     101            if (RT_VALID_PTR(mThat))
     102                mRC = mThat->i_addStateDependency(taDepType, &mMachineState,
     103                                                  &mRegistered);
     104            else
     105                mRC = S_OK;
    102106        }
    103107
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