From 829d51411a3a3692a14b866cd0ed85924bc8a4e8 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 6 Apr 2023 17:08:45 -0500 Subject: [PATCH] fix makeDir on Windows --- src/fileutils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileutils.cpp b/src/fileutils.cpp index d376039c..f729bd5d 100644 --- a/src/fileutils.cpp +++ b/src/fileutils.cpp @@ -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 -} \ No newline at end of file +}