Nikolay Sivov nsivov@codeweavers.com writes:
@@ -6292,6 +6292,13 @@ static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *infoPtr, INT nItem, BOOL bPart return TRUE; }
+static unsigned int startswithW(const WCHAR *str, const WCHAR *sub) +{
- const WCHAR *p1 = str, *p2 = sub;
- while (*p1 && *p2 && towlower(*p1) == towlower(*p2)) { p1++; p2++; }
- return !*p2;
+}
That's inefficient, and it won't do the same comparison as the full string case. You probably want something like StrCmpNIW.