diff options
author | Chris Robinson <[email protected]> | 2007-12-18 18:39:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-18 18:39:08 -0800 |
commit | 4cc64fa9a8f6c138e137750f930800ec89e23a12 (patch) | |
tree | 8ee8fdee4ce1ef9501efffcce5131780a595465b /OpenAL32/alFilter.c | |
parent | 7f55372727fdc89931b83f3bb360ce39c32e971e (diff) |
Don't allow properties on effect and filter name 0
Diffstat (limited to 'OpenAL32/alFilter.c')
-rw-r--r-- | OpenAL32/alFilter.c | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 719ccc0a..80da100a 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -153,12 +153,10 @@ AL_API ALvoid AL_APIENTRY alFilteri(ALuint filter, ALenum param, ALint iValue) { ALCcontext *Context; - (void)iValue; - Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { ALfilter *ALFilter = (ALfilter*)ALTHUNK_LOOKUPENTRY(filter); @@ -187,12 +185,10 @@ AL_API ALvoid AL_APIENTRY alFilteriv(ALuint filter, ALenum param, ALint *piValue { ALCcontext *Context; - (void)piValues; - Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { switch(param) { @@ -215,12 +211,10 @@ AL_API ALvoid AL_APIENTRY alFilterf(ALuint filter, ALenum param, ALfloat flValue { ALCcontext *Context; - (void)flValue; - Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { ALfilter *ALFilter = (ALfilter*)ALTHUNK_LOOKUPENTRY(filter); @@ -261,12 +255,10 @@ AL_API ALvoid AL_APIENTRY alFilterfv(ALuint filter, ALenum param, ALfloat *pflVa { ALCcontext *Context; - (void)pflValues; - Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { switch(param) { @@ -295,7 +287,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteri(ALuint filter, ALenum param, ALint *piVal Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { switch(param) { @@ -319,7 +311,7 @@ AL_API ALvoid AL_APIENTRY alGetFilteriv(ALuint filter, ALenum param, ALint *piVa Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { switch(param) { @@ -338,12 +330,10 @@ AL_API ALvoid AL_APIENTRY alGetFilterf(ALuint filter, ALenum param, ALfloat *pfl { ALCcontext *Context; - (void)pflValue; - Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { ALfilter *ALFilter = (ALfilter*)ALTHUNK_LOOKUPENTRY(filter); @@ -378,12 +368,10 @@ AL_API ALvoid AL_APIENTRY alGetFilterfv(ALuint filter, ALenum param, ALfloat *pf { ALCcontext *Context; - (void)pflValues; - Context = alcGetCurrentContext(); SuspendContext(Context); - if (alIsFilter(filter)) + if (filter && alIsFilter(filter)) { switch(param) { |