aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 18e41297..e4318fa6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1857,18 +1857,20 @@ ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *pDevice,ALCenum para
break;
case ALC_DEVICE_SPECIFIER:
- if(!VerifyDevice(pDevice))
- value = alcDefaultName;
- else
+ value = alcDefaultName;
+ break;
+
+ case ALC_ALL_DEVICES_SPECIFIER:
+ if(VerifyDevice(pDevice))
{
value = pDevice->szDeviceName;
ALCdevice_DecRef(pDevice);
}
- break;
-
- case ALC_ALL_DEVICES_SPECIFIER:
- ProbeAllDeviceList();
- value = alcAllDeviceList;
+ else
+ {
+ ProbeAllDeviceList();
+ value = alcAllDeviceList;
+ }
break;
case ALC_CAPTURE_DEVICE_SPECIFIER: