fix makeDir on Windows
This commit is contained in:
parent
fe10683a70
commit
829d51411a
|
@ -95,7 +95,7 @@ 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
|
||||
|
|
Loading…
Reference in New Issue