X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/404aba09e585de231b85eb2422bdd3bdc6318535..82c126e50158efee5a1f46e1200be380c5199f8d:/src/os2/window.cpp?ds=sidebyside diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 44fdde685b..3250350bc3 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -2941,6 +2941,7 @@ bool wxWindowOS2::OS2Create( PSZ zClass, long lControlId = 0L; wxWindowCreationHook vHook(this); wxString sClassName((wxChar*)zClass); + wxString sTitle(zTitle ? zTitle : wxEmptyString); OS2GetCreateWindowCoords( rPos ,rSize @@ -2969,7 +2970,7 @@ bool wxWindowOS2::OS2Create( PSZ zClass, } m_hWnd = (WXHWND)::WinCreateWindow( (HWND)OS2GetParent() ,sClassName.c_str() - ,(zTitle ? zTitle : wxEmptyString) + ,sTitle.c_str() ,(ULONG)dwStyle ,(LONG)0L ,(LONG)0L