1
0
forked from 0ad/0ad

Attempts to fix ArchiveViewer build on OS X (use wxString::wc_str() to construct std::wstring).

This was SVN commit r10305.
This commit is contained in:
historic_bruno 2011-09-23 02:56:19 +00:00
parent 83cfcd181d
commit 7828544946

View File

@ -461,7 +461,7 @@ void ArchiveViewer::ExtractFiles(bool onlySelected)
wxString filename = wxString( utf16tow(file.filename).c_str() ); wxString filename = wxString( utf16tow(file.filename).c_str() );
int lastSlash = filename.Find(_T('\\'), true); int lastSlash = filename.Find(_T('\\'), true);
if (lastSlash != -1) if (lastSlash != -1)
dirs.insert(filename.Mid(0, lastSlash+1).c_str()); dirs.insert(filename.Mid(0, lastSlash+1).wc_str());
} }
// Construct the directory tree: // Construct the directory tree: