mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Treat strings from external sources as 8-bit so FromAscii doesn't barf.
Ideally we should be more character set aware, but at the moment we use anonymous 7/8-bit strings in too many places. Fix use of AddGrowable{Col,Row}. Any (non-zero) rows/columns must have been created first by adding an item to it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5648 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
0b00faa378
commit
b7c2e523b3
10 changed files with 45 additions and 46 deletions
|
@ -293,7 +293,7 @@ bool DolphinApp::OnInit()
|
|||
tmpChar = new char[len];
|
||||
fread(tmpChar, len, 1, workingDir);
|
||||
fclose(workingDir);
|
||||
if (!wxSetWorkingDirectory(wxString::FromAscii(tmpChar)))
|
||||
if (!wxSetWorkingDirectory(wxString::From8BitData(tmpChar)))
|
||||
{
|
||||
INFO_LOG(CONSOLE, "set working directory failed");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue