Don't use global wxBuffer from code that gets compiled into the wx_base*.dll.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2004-03-08 11:29:15 +00:00
parent 11a20c3a78
commit bed67b7f86

View File

@@ -303,7 +303,7 @@ void wxError(
, const wxString& rTitle
)
{
wxBuffer = new wxChar[256];
wxChar *wxBuffer = new wxChar[256];
wxSprintf(wxBuffer, "%s\nContinue?", WXSTRINGCAST rMsg);
if (::WinMessageBox( HWND_DESKTOP
,NULL
@@ -409,7 +409,7 @@ wxChar* wxGetUserHome (
wxChar* zHome;
wxString sUser1(rUser);
wxBuffer = new wxChar[256];
char *wxBuffer = new wxChar[256];
#ifndef __EMX__
if (sUser1 != _T(""))
{