diff --git a/src/utility/cmdlib.cpp b/src/utility/cmdlib.cpp index 50eeb67a41..d882d2caf9 100644 --- a/src/utility/cmdlib.cpp +++ b/src/utility/cmdlib.cpp @@ -482,7 +482,12 @@ void DoCreatePath(const char *fn) if ('\0' != *path) { DoCreatePath(path); +#ifdef _WIN32 + auto wpath = WideString(path); + _wmkdir(wpath.c_str()); +#else _mkdir(path); +#endif } }