summaryrefslogtreecommitdiffstats
path: root/Alc/winmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r--Alc/winmm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/winmm.c b/Alc/winmm.c
index 26f40db2..7018f098 100644
--- a/Alc/winmm.c
+++ b/Alc/winmm.c
@@ -196,6 +196,7 @@ static ALCboolean WinMMOpenCapture(ALCdevice *pDevice, const ALCchar *deviceName
if(!CaptureDeviceList[i])
return ALC_FALSE;
}
+ pDevice->szDeviceName = CaptureDeviceList[lDeviceID];
pData = calloc(1, sizeof(*pData));
if(!pData)
@@ -262,8 +263,6 @@ static ALCboolean WinMMOpenCapture(ALCdevice *pDevice, const ALCchar *deviceName
pData->ulReadCapturedDataPos = 0;
pData->ulWriteCapturedDataPos = 0;
- strcpy(pDevice->szDeviceName, CaptureDeviceList[lDeviceID]);
-
pDevice->ExtraData = pData;
return ALC_TRUE;