"Aric Stewart" aric@codeweavers.com wrote:
+LPWSTR WINAPI StrChrNW(LPCWSTR lpszStr, WCHAR ch, UINT cchMax) +{
- TRACE("(%s(%i),%i)\n", debugstr_wn(lpszStr,cchMax), cchMax, ch);
 - if (lpszStr)
 - {
 - ch = toupperW(ch);
 - while (*lpszStr && cchMax > 0)
 - {
 if (toupperW(*lpszStr) == ch)return (LPWSTR)lpszStr;lpszStr++;cchMax --;- }
 - lpszStr = NULL;
 - }
 - return (LPWSTR)lpszStr;
 +}
Are you sure that the search should be case insensitive?