VirtualBox

Changeset 80730 in vbox


Ignore:
Timestamp:
Sep 11, 2019 10:46:05 AM (5 years ago)
Author:
vboxsync
Message:

Main/MediumImpl: Build fix if VBOX_WITH_EXTPACK= is not defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r80585 r80730  
    82158215        if (itKeyStore != pBase->m->mapProperties.end())
    82168216        {
     8217#ifdef VBOX_WITH_EXTPACK
    82178218            settings::StringsMap::iterator itKeyId = pBase->m->mapProperties.find("CRYPT/KeyId");
    82188219
    8219 #ifdef VBOX_WITH_EXTPACK
    82208220            ExtPackManager *pExtPackManager = m->pVirtualBox->i_getExtPackManager();
    82218221            if (pExtPackManager->i_isExtPackUsable(ORACLE_PUEL_EXTPACK_NAME))
     
    82418241                               tr("Encryption is not supported because the extension pack '%s' is missing"),
    82428242                               ORACLE_PUEL_EXTPACK_NAME);
    8243 #else
    8244             throw setError(VBOX_E_NOT_SUPPORTED,
    8245                            tr("Encryption is not supported because extension pack support is not built in"));
    8246 #endif
    82478243
    82488244            if (itKeyId == pBase->m->mapProperties.end())
     
    82738269                throw setErrorBoth(VBOX_E_INVALID_OBJECT_STATE, vrc, tr("Failed to load the decryption filter: %s"),
    82748270                                   i_vdError(vrc).c_str());
     8271#else
     8272            RT_NOREF(pKeyStore, pCryptoSettings);
     8273            throw setError(VBOX_E_NOT_SUPPORTED,
     8274                           tr("Encryption is not supported because extension pack support is not built in"));
     8275#endif /* VBOX_WITH_EXTPACK */
    82758276        }
    82768277
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