VirtualBox

Ignore:
Timestamp:
Jan 20, 2010 5:26:22 PM (15 years ago)
Author:
vboxsync
Message:

*: RTEnv usage cleanup - avoid RTEnvGet() as it doesn't necessarily return UTF-8 encoded strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/solaudio.c

    r21602 r25942  
    144144     * otherwise else we fallback to default.
    145145     */
    146     const char *pszAudioDev = RTEnvGet("AUDIODEV");
    147     if (pszAudioDev)
    148         return RTStrDup(pszAudioDev);
    149 
    150     return RTStrDup("/dev/audio");
     146    const char *pszAudioDev = RTEnvDupEx(RTENV_DEFAULT, "AUDIODEV");
     147    if (!pszAudioDev)
     148        pszAudioDev = RTStrDup("/dev/audio");
     149    return pszAudioDev;
    151150}
    152151
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