From 84f7327f47d5895c8fcc056217945f1863f63fc6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 12 Oct 2004 15:30:08 +0000 Subject: [PATCH] Undo last change due to STL. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listbox.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.50.0