diff options
-rw-r--r-- | OpenAL32/alEffect.c | 2 | ||||
-rw-r--r-- | OpenAL32/alFilter.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c index 09c3f181..66ba710a 100644 --- a/OpenAL32/alEffect.c +++ b/OpenAL32/alEffect.c @@ -146,7 +146,7 @@ AL_API ALboolean AL_APIENTRY alIsEffect(ALuint effect) ProcessContext(Context); - return (*list ? AL_TRUE : AL_FALSE); + return ((*list || !effect) ? AL_TRUE : AL_FALSE); } AL_API ALvoid AL_APIENTRY alEffecti(ALuint effect, ALenum param, ALint iValue) diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 6d57008f..c5d3ae31 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -146,7 +146,7 @@ AL_API ALboolean AL_APIENTRY alIsFilter(ALuint filter) ProcessContext(Context); - return (*list ? AL_TRUE : AL_FALSE); + return ((*list || !filter) ? AL_TRUE : AL_FALSE); } AL_API ALvoid AL_APIENTRY alFilteri(ALuint filter, ALenum param, ALint iValue) |