From: Włodzimierz Skiba Date: Tue, 12 Oct 2004 15:30:08 +0000 (+0000) Subject: Undo last change due to STL. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/84f7327f47d5895c8fcc056217945f1863f63fc6 Undo last change due to STL. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 1fc6d08142..84e7896bdf 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -513,9 +513,7 @@ wxString wxListBox::GetString(int N) const // +1 for terminating NUL wxString result; - wxChar* buffer = result.GetWriteBuf(len + 1); - ListBox_GetText(GetHwnd(), N, buffer); - result.UngetWriteBuf(); + ListBox_GetText(GetHwnd(), N, wxStringBuffer(result, len + 1)); return result; }