]> git.saurik.com Git - wxWidgets.git/commitdiff
removed use of p2cstr
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Jun 2004 07:15:28 +0000 (07:15 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Jun 2004 07:15:28 +0000 (07:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynlib.cpp

index 88f4b124bb70be3934e525ac791c8d50bb970e34..32019ad7e764af9a13796365fe353f9407fe2942 100644 (file)
@@ -212,10 +212,9 @@ bool wxDynamicLibrary::Load(wxString libname, int flags)
                          &myMainAddr,
                          myErrName ) != noErr )
     {
-        p2cstr( myErrName );
         wxLogSysError( _("Failed to load shared library '%s' Error '%s'"),
                        libname.c_str(),
-                       (char*)myErrName );
+                       wxMacMakeStringFromPascal( myErrName ).c_str() );
         m_handle = 0;
     }