fix makeDir on Windows
This commit is contained in:
parent
fe10683a70
commit
829d51411a
|
@ -95,8 +95,8 @@ bool dirExists(const char* what) {
|
||||||
|
|
||||||
bool makeDir(const char* path) {
|
bool makeDir(const char* path) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
return (SHCreateDirectory(NULL,utf8To16(path).c_str())!=ERROR_SUCCESS);
|
return (SHCreateDirectory(NULL,utf8To16(path).c_str())==ERROR_SUCCESS);
|
||||||
#else
|
#else
|
||||||
return (mkdir(path,0755)==0);
|
return (mkdir(path,0755)==0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue