diff --git a/src/util/StringAPI.hxx b/src/util/StringAPI.hxx index b25284006..483f8a292 100644 --- a/src/util/StringAPI.hxx +++ b/src/util/StringAPI.hxx @@ -141,7 +141,7 @@ gcc_pure gcc_nonnull_all static inline bool StringIsEqual(const char *a, const char *b) noexcept { - return strcmp(a, b) == 0; + return StringCompare(a, b) == 0; } /** diff --git a/src/util/WStringAPI.hxx b/src/util/WStringAPI.hxx index 13d3fd2cf..0fd70b72a 100644 --- a/src/util/WStringAPI.hxx +++ b/src/util/WStringAPI.hxx @@ -137,7 +137,7 @@ gcc_pure gcc_nonnull_all static inline bool StringIsEqual(const wchar_t *str1, const wchar_t *str2) noexcept { - return wcscmp(str1, str2) == 0; + return StringCompare(str1, str2) == 0; } /**