VirtualBox

Changeset 94745 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 28, 2022 6:25:09 PM (3 years ago)
Author:
vboxsync
Message:

Main/NvramStore: Add support for encrypted NVRAM files (untested), bugref:9955 [build fix]

File:
1 edited

Legend:

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

    r94743 r94745  
    870870    return m->pParent->i_retainCryptoIf(ppCryptoIf);
    871871#else
    872     return m->pParent->i_getVirtualBox()->i_retainCryptoIf(ppCryptoIf);
     872    HRESULT hrc = m->pParent->i_getVirtualBox()->i_retainCryptoIf(ppCryptoIf);
     873    if (SUCCEEDED(hrc))
     874        return VINF_SUCCESS;
     875
     876    return VERR_COM_IPRT_ERROR;
    873877#endif
    874878}
     
    880884    return m->pParent->i_releaseCryptoIf(pCryptoIf);
    881885#else
    882     return m->pParent->i_getVirtualBox()->i_releaseCryptoIf(pCryptoIf);
     886    HRESULT hrc = m->pParent->i_getVirtualBox()->i_releaseCryptoIf(pCryptoIf);
     887    if (SUCCEEDED(hrc))
     888        return VINF_SUCCESS;
     889
     890    return VERR_COM_IPRT_ERROR;
    883891#endif
    884892}
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