mirror of https://github.com/PCSX2/pcsx2.git
Fix length_error crash in basic_string in the ini code. (#3411)
This commit is contained in:
parent
26a4ba360f
commit
8eb1bc1986
|
@ -170,7 +170,7 @@ void IniLoader::Entry(const wxString &var, uint &value, const uint defvalue)
|
|||
void IniLoader::Entry(const wxString &var, bool &value, const bool defvalue)
|
||||
{
|
||||
// TODO : Stricter value checking on enabled/disabled?
|
||||
wxString dest(defvalue ? L"enabled" : L"disabled");
|
||||
wxString dest(defvalue ? "enabled" : "disabled", 8);
|
||||
if (m_Config)
|
||||
m_Config->Read(var, &dest, dest);
|
||||
value = (dest == L"enabled") || (dest == L"1");
|
||||
|
|
Loading…
Reference in New Issue