From 75c836fbd9933c7047ff4d4d64869a5a1dafe428 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Aug 2018 15:31:09 +0200 Subject: [PATCH] util/StringAPI: use StringCompare() in StringIsEqual() --- src/util/StringAPI.hxx | 2 +- src/util/WStringAPI.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } /**