diff options
Diffstat (limited to 'Alc/backends/winmm.c')
-rw-r--r-- | Alc/backends/winmm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c index 7082a874..19cad879 100644 --- a/Alc/backends/winmm.c +++ b/Alc/backends/winmm.c @@ -336,7 +336,7 @@ retry_open: goto failure; } - Device->DeviceName = strdup(PlaybackDeviceList[DeviceID]); + al_string_copy_cstr(&Device->DeviceName, PlaybackDeviceList[DeviceID]); return ALC_NO_ERROR; failure: @@ -606,7 +606,7 @@ static ALCenum WinMMOpenCapture(ALCdevice *Device, const ALCchar *deviceName) if (data->WaveThread == NULL) goto failure; - Device->DeviceName = strdup(CaptureDeviceList[DeviceID]); + al_string_copy_cstr(&Device->DeviceName, CaptureDeviceList[DeviceID]); return ALC_NO_ERROR; failure: |