From b0fb8f03c6cc15a56db9ef859e956c162b0fbbb7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 31 Mar 2006 09:34:04 +0000 Subject: [PATCH] Correctly handle bogus format token in alBufferData(). --- osx/alBuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osx/alBuffer.c b/osx/alBuffer.c index 1272170..eefb5fe 100644 --- a/osx/alBuffer.c +++ b/osx/alBuffer.c @@ -1385,7 +1385,8 @@ static ALboolean __alDoBufferConvert(ALcontext *ctx, ALbuffer *buffer, default: //printf("tried to buffer %d data.\n", format); - __alSetError(AL_ILLEGAL_ENUM); + __alSetError(AL_ILLEGAL_ENUM); + return(AL_FALSE); } // switch // Fast path if no sample rate conversion needed...