Fix: MkDirP supports '/' and '\' on Windows

fixes #10231
This commit is contained in:
Michael Friedrich 2016-03-07 09:22:07 +01:00
parent 9e833d7563
commit baecdc3210
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ void Utility::MkDirP(const String& path, int mode)
#ifndef _WIN32 #ifndef _WIN32
pos = path.Find("/", pos + 1); pos = path.Find("/", pos + 1);
#else /*_ WIN32 */ #else /*_ WIN32 */
pos = path.Find("\\", pos + 1); pos = path.FindFirstOf("/\\", pos + 1);
#endif /* _WIN32 */ #endif /* _WIN32 */
MkDir(path.SubStr(0, pos), mode); MkDir(path.SubStr(0, pos), mode);
} }