char* cast on wxString libname blows up VC and VA. added .x_str(). Should have been wxChar* cast???
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6359fa0e03
commit
d236a959df
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user