Skip to content

Commit

Permalink
- fixed: Windows must call the wide version of _mkdir for Unicode sup…
Browse files Browse the repository at this point in the history
…port.
  • Loading branch information
coelckers committed Feb 25, 2020
1 parent 5d6a490 commit 3a2eaf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utility/cmdlib.cpp
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 3a2eaf2

Please sign in to comment.