mirror of https://github.com/PCSX2/pcsx2.git
Fix segmentation fault with the new libstdc++ ABI.
Local variable goes out of scope and everything goes boom.
This commit is contained in:
parent
53680d538d
commit
f1cb2cfa35
|
@ -29,8 +29,7 @@ const wxChar* __fastcall pxExpandMsg( const wxChar* englishContent )
|
||||||
#if _WIN32 || wxMAJOR_VERSION < 3
|
#if _WIN32 || wxMAJOR_VERSION < 3
|
||||||
return wxGetTranslation(englishContent);
|
return wxGetTranslation(englishContent);
|
||||||
#else
|
#else
|
||||||
wxString translation = wxGetTranslation( englishContent );
|
return wxGetTranslation(englishContent).wc_str();
|
||||||
return translation.wc_str();
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +52,6 @@ const wxChar* __fastcall pxGetTranslation( const wxChar* message )
|
||||||
#if _WIN32 || wxMAJOR_VERSION < 3
|
#if _WIN32 || wxMAJOR_VERSION < 3
|
||||||
return wxGetTranslation(message);
|
return wxGetTranslation(message);
|
||||||
#else
|
#else
|
||||||
wxString translation = wxGetTranslation( message );
|
return wxGetTranslation( message ).wc_str();
|
||||||
return translation.wc_str();
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue