bug fix. The wxCharBuffer was being destroyed before it was used.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-07-08 23:09:15 +00:00
parent ba51567d79
commit 536a020f8a
4 changed files with 8 additions and 4 deletions

View File

@@ -951,7 +951,8 @@ int wxStyledTextCtrl::FindText(int minPos, int maxPos,
TextToFind ft;
ft.chrg.cpMin = minPos;
ft.chrg.cpMax = maxPos;
ft.lpstrText = (char*)(const char*)wx2stc(text);
wxWX2MBbuf buf = wx2stc(text);
ft.lpstrText = (char*)(const char*)buf;
return SendMsg(2150, flags, (long)&ft);
}