aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alEffect.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2007-12-18 18:39:08 -0800
committerChris Robinson <[email protected]>2007-12-18 18:39:08 -0800
commit4cc64fa9a8f6c138e137750f930800ec89e23a12 (patch)
tree8ee8fdee4ce1ef9501efffcce5131780a595465b /OpenAL32/alEffect.c
parent7f55372727fdc89931b83f3bb360ce39c32e971e (diff)
Don't allow properties on effect and filter name 0
Diffstat (limited to 'OpenAL32/alEffect.c')
-rw-r--r--OpenAL32/alEffect.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index ab24e624..823d09ae 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -156,7 +156,7 @@ AL_API ALvoid AL_APIENTRY alEffecti(ALuint effect, ALenum param, ALint iValue)
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
ALeffect *ALEffect = (ALeffect*)ALTHUNK_LOOKUPENTRY(effect);
@@ -187,7 +187,7 @@ AL_API ALvoid AL_APIENTRY alEffectiv(ALuint effect, ALenum param, ALint *piValue
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
switch(param)
{
@@ -215,7 +215,7 @@ AL_API ALvoid AL_APIENTRY alEffectf(ALuint effect, ALenum param, ALfloat flValue
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
switch(param)
{
@@ -239,7 +239,7 @@ AL_API ALvoid AL_APIENTRY alEffectfv(ALuint effect, ALenum param, ALfloat *pflVa
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
switch(param)
{
@@ -261,7 +261,7 @@ AL_API ALvoid AL_APIENTRY alGetEffecti(ALuint effect, ALenum param, ALint *piVal
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
ALeffect *ALEffect = (ALeffect*)ALTHUNK_LOOKUPENTRY(effect);
@@ -289,7 +289,7 @@ AL_API ALvoid AL_APIENTRY alGetEffectiv(ALuint effect, ALenum param, ALint *piVa
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
switch(param)
{
@@ -317,7 +317,7 @@ AL_API ALvoid AL_APIENTRY alGetEffectf(ALuint effect, ALenum param, ALfloat *pfl
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
switch(param)
{
@@ -341,7 +341,7 @@ AL_API ALvoid AL_APIENTRY alGetEffectfv(ALuint effect, ALenum param, ALfloat *pf
Context = alcGetCurrentContext();
SuspendContext(Context);
- if (alIsEffect(effect))
+ if (effect && alIsEffect(effect))
{
switch(param)
{