From ef529a586eea897f3534c07ca28e39daabc59988 Mon Sep 17 00:00:00 2001 From: "Boris I. Bendovsky" Date: Tue, 1 Feb 2022 02:01:56 +0200 Subject: [EAX] Fix alIsExtensionPresent (#651) --- al/extension.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'al/extension.cpp') 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; -- cgit v1.2.3