]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/utils.cpp
implemented Freeze/Thaw() (patch 922156)
[wxWidgets.git] / 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(""))
     {