diff options
author | Boris I. Bendovsky <[email protected]> | 2022-02-01 02:01:56 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-31 16:01:56 -0800 |
commit | ef529a586eea897f3534c07ca28e39daabc59988 (patch) | |
tree | 02759419c53aa57e5061d6b653a5a8af046885b7 /al/extension.cpp | |
parent | 96366c1fc142659a7a6da40d78403c30b3af4698 (diff) |
[EAX] Fix alIsExtensionPresent (#651)
Diffstat (limited to 'al/extension.cpp')
-rw-r--r-- | al/extension.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/al/extension.cpp b/al/extension.cpp index 6d9d181a..3f713834 100644 --- a/al/extension.cpp +++ b/al/extension.cpp @@ -48,16 +48,16 @@ START_API_FUNC size_t len{strlen(extName)}; #ifdef ALSOFT_EAX - if (al::strncasecmp(eax_v2_0_ext_name, extName, len) == 0 || - al::strncasecmp(eax_v3_0_ext_name, extName, len) == 0 || - al::strncasecmp(eax_v4_0_ext_name, extName, len) == 0 || - al::strncasecmp(eax_v5_0_ext_name, extName, len) == 0) + if (al::strcasecmp(eax_v2_0_ext_name, extName) == 0 || + al::strcasecmp(eax_v3_0_ext_name, extName) == 0 || + al::strcasecmp(eax_v4_0_ext_name, extName) == 0 || + al::strcasecmp(eax_v5_0_ext_name, extName) == 0) { const auto is_present = eax_g_is_enabled && context->eax_is_capable(); return is_present ? AL_TRUE : AL_FALSE; } - if (al::strncasecmp(eax_x_ram_ext_name, extName, len) == 0) + if (al::strcasecmp(eax_x_ram_ext_name, extName) == 0) { const auto is_present = eax_g_is_enabled; return is_present ? AL_TRUE : AL_FALSE; |