From c26971c64cceef9dad3f6c2e7142c40d6243e33f Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" Date: Wed, 22 Sep 2004 19:10:27 +0000 Subject: [PATCH] Cleanup W->A transition. --- dlls/comctl32/string.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/string.c b/dlls/comctl32/string.c index a67f6622fbb..5f4395e709e 100644 --- a/dlls/comctl32/string.c +++ b/dlls/comctl32/string.c @@ -131,6 +131,16 @@ static BOOL COMCTL32_ChrCmpW(WCHAR ch1, WCHAR ch2) return COMCTL32_ChrCmpHelperW(ch1, ch2, 0); } +/************************************************************************* + * COMCTL32_ChrCmpIW + * + * Internal helper function. + */ +static BOOL COMCTL32_ChrCmpIW(WCHAR ch1, WCHAR ch2) +{ + return COMCTL32_ChrCmpHelperW(ch1, ch2, NORM_IGNORECASE); +} + /************************************************************************** * StrChrA [COMCTL32.350] * @@ -627,7 +637,7 @@ LPWSTR WINAPI StrRStrIW(LPCWSTR lpszStr, LPCWSTR lpszEnd, LPCWSTR lpszSearch) while (lpszStr <= lpszEnd && *lpszStr) { - if (!COMCTL32_ChrCmpIA(*lpszSearch, *lpszStr)) + if (!COMCTL32_ChrCmpIW(*lpszSearch, *lpszStr)) { if (!StrCmpNIW(lpszStr, lpszSearch, iLen)) lpszRet = (LPWSTR)lpszStr; -- 2.11.4.GIT