From 5f4659534abfc3a27cdae32606f699f189275ec8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 14 Dec 2007 08:51:45 -0800 Subject: Store a persistant name string with the device struct --- Alc/winmm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/winmm.c') 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; -- cgit v1.2.3