diff --git a/lib/base/utility.cpp b/lib/base/utility.cpp index c86051bb4..b139ce7b0 100644 --- a/lib/base/utility.cpp +++ b/lib/base/utility.cpp @@ -724,7 +724,7 @@ void Utility::MkDirP(const String& path, int mode) #ifndef _WIN32 pos = path.Find("/", pos + 1); #else /*_ WIN32 */ - pos = path.Find("\\", pos + 1); + pos = path.FindFirstOf("/\\", pos + 1); #endif /* _WIN32 */ MkDir(path.SubStr(0, pos), mode); }