X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c1602b8ad0a0e348141287db89c472949b809c9..1d9fe50dc9ef6e605c04c1d01e064b3cc2769377:/src/msw/listctrl.cpp diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index f61b3fd9ca..65fb65b7d0 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1424,7 +1424,7 @@ long wxListCtrl::FindItem(long start, const wxString& str, bool partial) findInfo.flags = LVFI_STRING; if ( partial ) findInfo.flags |= LVFI_PARTIAL; - findInfo.psz = str; + findInfo.psz = str.wx_str(); // ListView_FindItem() excludes the first item from search and to look // through all the items you need to start from -1 which is unnatural and