diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-24 19:36:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 19:36:26 +0200 |
commit | 53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5 (patch) | |
tree | ee2e85916ffadc40bc0564348ac5041196cbf28a /src/audio/oal/aldlist.cpp | |
parent | update librw (diff) | |
parent | 64-bit on Windows (diff) | |
download | re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.gz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.bz2 re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.lz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.xz re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.tar.zst re3-53e7cbbd5acf94efe8d123db4b0f5d8d0aa6b2e5.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); |