diff options
Diffstat (limited to 'al/extension.cpp')
-rw-r--r-- | al/extension.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/al/extension.cpp b/al/extension.cpp index 3d01d6c1..3a84ee08 100644 --- a/al/extension.cpp +++ b/al/extension.cpp @@ -40,7 +40,10 @@ START_API_FUNC if(!context) [[unlikely]] return AL_FALSE; if(!extName) [[unlikely]] - SETERR_RETURN(context, AL_INVALID_VALUE, AL_FALSE, "NULL pointer"); + { + context->setError(AL_INVALID_VALUE, "NULL pointer"); + return AL_FALSE; + } size_t len{strlen(extName)}; const char *ptr{context->mExtensionList}; |