- fixed: Windows must call the wide version of _mkdir for Unicode support.

This commit is contained in:
Christoph Oelckers 2020-02-25 18:51:42 +01:00 committed by drfrag
parent b99da999a5
commit d27d2b0e1c

View file

@ -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];