aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alExtension.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-04-24 03:52:21 -0700
committerChris Robinson <[email protected]>2012-04-24 03:52:21 -0700
commit3e49e7914013746b70917ada00ac1d2f8903819d (patch)
treede9e184ab7986bdaa125da1f97c324ef2578b972 /OpenAL32/alExtension.c
parentdec8e81211c91aa2a75f047fbe423209f685f635 (diff)
Couple small error handling fixups
Diffstat (limited to 'OpenAL32/alExtension.c')
-rw-r--r--OpenAL32/alExtension.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenAL32/alExtension.c b/OpenAL32/alExtension.c
index 4d6e2644..c73200d0 100644
--- a/OpenAL32/alExtension.c
+++ b/OpenAL32/alExtension.c
@@ -56,10 +56,10 @@ AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extName)
Context = GetContextRef();
if(!Context) return AL_FALSE;
- if(!extName)
- alSetError(Context, AL_INVALID_VALUE);
- else
+ al_try
{
+ CHECK_VALUE(Context, extName);
+
len = strlen(extName);
ptr = Context->ExtensionList;
while(ptr && *ptr)
@@ -78,6 +78,7 @@ AL_API ALboolean AL_APIENTRY alIsExtensionPresent(const ALchar *extName)
}
}
}
+ al_endtry;
ALCcontext_DecRef(Context);
return ret;