]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dynlib.cpp
Copied from src/msw/gsocket.c revision 1.61
[wxWidgets.git] / 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;
     }