diff options
author | Chris Robinson <[email protected]> | 2007-12-14 08:51:45 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-14 08:51:45 -0800 |
commit | 5f4659534abfc3a27cdae32606f699f189275ec8 (patch) | |
tree | 93a9e9978b28d1548b880c7169fb53ba161f0a31 /Alc/winmm.c | |
parent | 5da394ab617ab7d11e5b11610bb8dd83033e3920 (diff) |
Store a persistant name string with the device struct
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r-- | Alc/winmm.c | 3 |
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; |