aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 29ccbf45..dfdece10 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1050,6 +1050,12 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
int oldMode;
ALuint i;
+ if(device->IsLoopbackDevice && !(attrList && attrList[0]))
+ {
+ WARN("Missing attributes for loopback device\n");
+ return ALC_INVALID_VALUE;
+ }
+
// Check for attributes
if(attrList && attrList[0])
{