diff options
author | shfil <filip.gawin@zoho.com> | 2020-07-22 23:02:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-22 23:02:11 +0200 |
commit | 98dd771d6cf3adb7153700040f122cd0916d5eeb (patch) | |
tree | 5578c27b5739341d34def86586a68f1f1129e1bb /src/audio/oal/aldlist.cpp | |
parent | README 64-bit preparation (diff) | |
parent | 64-bit on Windows (diff) | |
download | re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.gz re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.bz2 re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.lz re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.xz re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.zst re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.zip |
Diffstat (limited to 'src/audio/oal/aldlist.cpp')
-rw-r--r-- | src/audio/oal/aldlist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/oal/aldlist.cpp b/src/audio/oal/aldlist.cpp index 3e86b1d7..881418c1 100644 --- a/src/audio/oal/aldlist.cpp +++ b/src/audio/oal/aldlist.cpp @@ -27,6 +27,7 @@ #ifndef _WIN32 #define _stricmp strcasecmp #define _strnicmp strncasecmp +#define _strdup strdup #endif #ifdef AUDIO_OAL @@ -71,7 +72,7 @@ ALDeviceList::ALDeviceList() if ((bNewName) && (actualDeviceName != NULL) && (strlen(actualDeviceName) > 0)) { ALDEVICEINFO ALDeviceInfo; ALDeviceInfo.bSelected = true; - ALDeviceInfo.strDeviceName = actualDeviceName; + ALDeviceInfo.strDeviceName = _strdup(actualDeviceName); alcGetIntegerv(device, ALC_MAJOR_VERSION, sizeof(int), &ALDeviceInfo.iMajorVersion); alcGetIntegerv(device, ALC_MINOR_VERSION, sizeof(int), &ALDeviceInfo.iMinorVersion); |