X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2f60e03ccc39fc15ad9673dad7b27b86c42996f..cf471cab8277f4cc2c19bce417356badf9e2ca49:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index ebefb2ef97..1f9cbc486f 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -230,7 +230,7 @@ static wxString MakeCorrectPath(const wxString& path) cnt = p.Length(); for (i = 0; i < cnt; i++) - if (p.GetChar(i) == wxT('\\')); p.GetWritableChar(i) = wxT('/'); // wanna be windows-safe + if (p.GetChar(i) == wxT('\\')) p.GetWritableChar(i) = wxT('/'); // Want to be windows-safe if (p.Left(2) == wxT("./")) { p = p.Mid(2); cnt -= 2; } @@ -382,7 +382,7 @@ wxString wxFileSystem::FindFirst(const wxString& spec, int flags) m_FindFileHandler = NULL; for (int i = spec2.Length()-1; i >= 0; i--) - if (spec2[(unsigned int) i] == wxT('\\')) spec2.GetWritableChar(i) = wxT('/'); // wanna be windows-safe + if (spec2[(unsigned int) i] == wxT('\\')) spec2.GetWritableChar(i) = wxT('/'); // Want to be windows-safe node = m_Handlers.GetFirst(); while (node)