diff --git a/src/cmdlib.cpp b/src/cmdlib.cpp index d6241ef61..14c975ab7 100644 --- a/src/cmdlib.cpp +++ b/src/cmdlib.cpp @@ -519,7 +519,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 } #else char path[PATH_MAX];