VirtualBox

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


Ignore:
Timestamp:
Jan 15, 2018 11:02:19 AM (7 years ago)
Author:
vboxsync
Message:

Main/AudioDriver: Bail out early in configure() if no audio device is configured.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/AudioDriver.cpp

    r70580 r70583  
    279279    AssertPtr(pRoot);
    280280    PCFGMNODE pDev0   = CFGMR3GetChildF(pRoot, "Devices/%s/%u/", mCfg.strDev.c_str(), mCfg.uInst);
    281     AssertPtr(pDev0);
     281
     282    if (!pDev0) /* No audio device configured? Bail out. */
     283        return VINF_SUCCESS;
    282284
    283285    PCFGMNODE pDevLun = CFGMR3GetChildF(pDev0, "LUN#%u/", uLUN);
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