VirtualBox

Changeset 105628 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 8, 2024 4:03:30 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164312
Message:

Main/NvramStore: Don't (debug) assert when getting the UEFI NVRAM store for non-UEFI VMs; some IPRT APIs being used don't like empty strings (paths) and assert in such cases. Be a bit more information wrt returning errors via the API about what's going on [build fix].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/NvramStoreImpl.cpp

    r105627 r105628  
    372372        return setError(E_FAIL, tr("No NVRAM store file found"));
    373373
    374     HRESULT hrc;
    375 
    376374    /* We need a write lock because of the lazy initialization. */
    377375    AutoWriteLock wlock(this COMMA_LOCKVAL_SRC_POS);
    378376
    379377    /* Check if we have to create the UEFI variable store object */
     378    HRESULT hrc = S_OK;
    380379    if (!m->pUefiVarStore)
    381380    {
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