VirtualBox

Changeset 73463 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 3, 2018 9:25:19 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudioCommon: Check if the given stream configuration is valid in DrvAudioHlpStreamCfgDup().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudioCommon.cpp

    r73429 r73463  
    977977{
    978978    AssertPtrReturn(pCfg, NULL);
     979
     980#ifdef VBOX_STRICT
     981    if (!DrvAudioHlpStreamCfgIsValid(pCfg))
     982    {
     983        AssertMsgFailed(("Stream config '%s' (%p) is invalid\n", pCfg->szName, pCfg));
     984        return NULL;
     985    }
     986#endif
    979987
    980988    PPDMAUDIOSTREAMCFG pDst = (PPDMAUDIOSTREAMCFG)RTMemAllocZ(sizeof(PDMAUDIOSTREAMCFG));
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