aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-04-15 20:10:32 -0700
committerChris Robinson <[email protected]>2017-04-15 20:10:32 -0700
commit8f1a968d7934117fa5ff499e3989ea2ae8e17b52 (patch)
treef0edbc749ceb9c444f0c12cc0b3bc6c4fa083497
parentfca83263f46c8934b58d17997362eeecd6a79905 (diff)
Correctly handle the attribute array size for alcGetInteger64vSOFT
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 2d0d64f5..e11a2a4e 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -3274,11 +3274,11 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname,
switch(pname)
{
case ALC_ATTRIBUTES_SIZE:
- *values = NumAttrsForDevice(device)+2;
+ *values = NumAttrsForDevice(device)+4;
break;
case ALC_ALL_ATTRIBUTES:
- if(size < NumAttrsForDevice(device)+2)
+ if(size < NumAttrsForDevice(device)+4)
alcSetError(device, ALC_INVALID_VALUE);
else
{