diff --git a/dlls/shlwapi/string.c b/dlls/shlwapi/string.c index da0dee3..6cd6f9e 100644 --- a/dlls/shlwapi/string.c +++ b/dlls/shlwapi/string.c @@ -1139,7 +1139,7 @@ static LPSTR SHLWAPI_StrRChrHelperA(LPCSTR lpszStr, if (!lpszEnd) lpszEnd = lpszStr + lstrlenA(lpszStr); - while (*lpszStr && lpszStr <= lpszEnd) + while (*lpszStr && lpszStr < lpszEnd) { ch2 = IsDBCSLeadByte(*lpszStr)? *lpszStr << 8 | lpszStr[1] : *lpszStr;