Alexandre Julliard : include: Add wcsicmp() inline wrapper.
Module: wine Branch: master Commit: 1f38c1abf62505786534a3324a82d0e798b4c185 URL: https://source.winehq.org/git/wine.git/?a=commit;h=1f38c1abf62505786534a3324... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Apr 11 11:50:18 2019 +0200 include: Add wcsicmp() inline wrapper. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- include/msvcrt/string.h | 1 + programs/reg/reg.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/msvcrt/string.h b/include/msvcrt/string.h index d1dca89..0b36d2c 100644 --- a/include/msvcrt/string.h +++ b/include/msvcrt/string.h @@ -147,6 +147,7 @@ static inline char* strupr(char* str) { return _strupr(str); } static inline wchar_t* wcsdup(const wchar_t* str) { return _wcsdup(str); } static inline int wcsicoll(const wchar_t* str1, const wchar_t* str2) { return _wcsicoll(str1, str2); } static inline wchar_t* wcslwr(wchar_t* str) { return _wcslwr(str); } +static inline int wcsicmp(const wchar_t* s1, const wchar_t* s2) { return _wcsicmp(s1, s2); } static inline int wcsnicmp(const wchar_t* str1, const wchar_t* str2, size_t n) { return _wcsnicmp(str1, str2, n); } static inline wchar_t* wcsnset(wchar_t* str, wchar_t c, size_t n) { return _wcsnset(str, c, n); } static inline wchar_t* wcsrev(wchar_t* str) { return _wcsrev(str); } diff --git a/programs/reg/reg.c b/programs/reg/reg.c index fe52568..987a556 100644 --- a/programs/reg/reg.c +++ b/programs/reg/reg.c @@ -230,7 +230,7 @@ static DWORD wchar_get_type(const WCHAR *type_name) for (i = 0; i < ARRAY_SIZE(type_rels); i++) { - if (!_wcsicmp(type_rels[i].name, type_name)) + if (!wcsicmp(type_rels[i].name, type_name)) return type_rels[i].type; }
participants (1)
-
Alexandre Julliard