]> git.saurik.com Git - wxWidgets.git/commitdiff
char* cast on wxString libname blows up VC and VA. added .x_str(). Should have...
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 2 Apr 2001 13:44:45 +0000 (13:44 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 2 Apr 2001 13:44:45 +0000 (13:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynlib.cpp

index 5f3f4fab75df3f5f9600cee10ac9c41eaa4d36af..d8b6551c67fcc2fca8a1a5fe305fe8b891ffc4a3 100644 (file)
@@ -214,10 +214,10 @@ wxDllLoader::GetProgramHandle(void)
 {
 #if defined( HAVE_DLOPEN ) && !defined(__EMX__)
    // optain handle for main program
-   return dlopen(NULL, RTLD_NOW/*RTLD_LAZY*/); 
+   return dlopen(NULL, RTLD_NOW/*RTLD_LAZY*/);
 #elif defined (HAVE_SHL_LOAD)
    // shl_findsymbol with NULL handle looks up in main program
-   return 0; 
+   return 0;
 #else
    wxFAIL_MSG( wxT("This method is not implemented under Windows or OS/2"));
    return 0;
@@ -247,7 +247,7 @@ wxDllLoader::LoadLibrary(const wxString & libname, bool *success)
     char zError[256] = "";
     wxDllOpen(zError, libname, handle);
 #else // !Mac
-    handle = wxDllOpen((char *)libname);
+    handle = wxDllOpen((char *)libname.c_str());
 #endif // OS
 
     if ( !handle )