mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #818 from micove/Linux_Segfault
Linux: Fix segmentation fault with the new libstdc++ ABI. Closes #780
This commit is contained in:
commit
f062b0f671
|
@ -29,8 +29,7 @@ const wxChar* __fastcall pxExpandMsg( const wxChar* englishContent )
|
|||
#if _WIN32 || wxMAJOR_VERSION < 3
|
||||
return wxGetTranslation(englishContent);
|
||||
#else
|
||||
wxString translation = wxGetTranslation( englishContent );
|
||||
return translation.wc_str();
|
||||
return wxGetTranslation(englishContent).wc_str();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -53,7 +52,6 @@ const wxChar* __fastcall pxGetTranslation( const wxChar* message )
|
|||
#if _WIN32 || wxMAJOR_VERSION < 3
|
||||
return wxGetTranslation(message);
|
||||
#else
|
||||
wxString translation = wxGetTranslation( message );
|
||||
return translation.wc_str();
|
||||
return wxGetTranslation( message ).wc_str();
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue