MemoryView: Fix empty string

This commit is contained in:
Sepalani 2017-04-20 22:04:10 +01:00
parent a2cba6d72f
commit f9b4901825
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ wxString CMemoryView::ReadMemoryAsString(u32 address) const
} }
} }
return StrToWxStr(str); // Not a UTF-8 string
return wxString(str.c_str(), wxCSConv(wxFONTENCODING_CP1252), str.size());
} }
void CMemoryView::OnMouseDownL(wxMouseEvent& event) void CMemoryView::OnMouseDownL(wxMouseEvent& event)