aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/dsound.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c
index 08a1d13a..8a8ce3bc 100644
--- a/Alc/backends/dsound.c
+++ b/Alc/backends/dsound.c
@@ -122,18 +122,6 @@ static BOOL CALLBACK DSoundEnumDevices(LPGUID guid, LPCSTR desc, LPCSTR drvname,
(void)data;
(void)drvname;
- if(NumDevices == 0)
- {
- temp = realloc(DeviceList, sizeof(DevMap) * (NumDevices+1));
- if(temp)
- {
- DeviceList = temp;
- DeviceList[NumDevices].name = strdup(dsDevice);
- DeviceList[NumDevices].guid = GUID_NULL;
- NumDevices++;
- }
- }
-
if(!guid)
return TRUE;
@@ -289,8 +277,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam
{
if(strcmp(deviceName, DeviceList[i].name) == 0)
{
- if(i > 0)
- guid = &DeviceList[i].guid;
+ guid = &DeviceList[i].guid;
break;
}
}