diff options
author | Chris Robinson <[email protected]> | 2018-11-15 06:23:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 06:23:01 -0800 |
commit | 7b3a2085aac8eac47f9968f331d3991167793e85 (patch) | |
tree | 5566b15f7a90fe8e0fb2b280c4f8b83c80247f4f /Alc/backends/qsa.cpp | |
parent | ab9f8162b84870161948ddd27d29483206dd4e57 (diff) |
Use a regular char* for the device's name
Diffstat (limited to 'Alc/backends/qsa.cpp')
-rw-r--r-- | Alc/backends/qsa.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/backends/qsa.cpp b/Alc/backends/qsa.cpp index 7afd3214..3a99d71e 100644 --- a/Alc/backends/qsa.cpp +++ b/Alc/backends/qsa.cpp @@ -328,7 +328,8 @@ static ALCenum qsa_open_playback(PlaybackWrapper *self, const ALCchar* deviceNam return ALC_INVALID_DEVICE; } - alstr_copy_cstr(&device->DeviceName, deviceName); + al_free(device->DeviceName); + device->DeviceName = alstrdup(deviceName); self->ExtraData = data; return ALC_NO_ERROR; @@ -735,7 +736,8 @@ static ALCenum qsa_open_capture(CaptureWrapper *self, const ALCchar *deviceName) return ALC_INVALID_DEVICE; } - alstr_copy_cstr(&device->DeviceName, deviceName); + al_free(device->DeviceName); + device->DeviceName = alstrdup(deviceName); self->ExtraData = data; switch (device->FmtType) |