]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use global wxBuffer from code that gets compiled into the wx_base*.dll.
authorStefan Neis <Stefan.Neis@t-online.de>
Mon, 8 Mar 2004 11:29:15 +0000 (11:29 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Mon, 8 Mar 2004 11:29:15 +0000 (11:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/utils.cpp

index 622673e7f9ea062e6f818c680b824c1dfe75201a..22e883779691a4efe08d3390f29b515e85befef7 100644 (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(""))
     {