fix makeDir on Windows

This commit is contained in:
tildearrow 2023-04-06 17:08:45 -05:00
parent fe10683a70
commit 829d51411a
1 changed files with 2 additions and 2 deletions

View File

@ -95,8 +95,8 @@ bool dirExists(const char* what) {
bool makeDir(const char* path) {
#ifdef _WIN32
return (SHCreateDirectory(NULL,utf8To16(path).c_str())!=ERROR_SUCCESS);
return (SHCreateDirectory(NULL,utf8To16(path).c_str())==ERROR_SUCCESS);
#else
return (mkdir(path,0755)==0);
#endif
}
}