VirtualBox

Ignore:
Timestamp:
May 17, 2021 5:50:52 PM (4 years ago)
Author:
vboxsync
Message:

ValKit/AudioTest: Keep it short. AssertPtrReturn is not needed (see original). bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89118 r89119  
    408408    {
    409409        const char *pszRet = pszDef;
    410         if (   strcmp(pDrvReg->szName, "AUDIO") == 0
     410        if (   g_pszDrvAudioDebug
     411            && strcmp(pDrvReg->szName, "AUDIO") == 0
    411412            && strcmp(pszName, "DebugPathOut") == 0)
    412         {
    413             /* Don't set pszRet to NULL if g_pszDrvAudioDebug is not set (via "--debug-audio-path");
    414              * instead, just return the default assigned from above. */
    415             if (g_pszDrvAudioDebug)
    416                 pszRet = g_pszDrvAudioDebug;
    417         }
    418 
    419         AssertPtrReturn(pszRet, VERR_INVALID_POINTER);
     413            pszRet = g_pszDrvAudioDebug;
    420414
    421415        int rc = RTStrCopy(pszString, cchString, pszRet);
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