From: Côme Chilliet Date: Thu, 22 Dec 2016 20:06:04 +0000 (+0100) Subject: Added parenthesis to expression X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=8cff961ce194a360481a0734252a5a59a7e0578e;p=lugaru.git Added parenthesis to expression --- diff --git a/Source/Utils/Folders.cpp b/Source/Utils/Folders.cpp index 21322c1..8f2bc18 100644 --- a/Source/Utils/Folders.cpp +++ b/Source/Utils/Folders.cpp @@ -117,11 +117,11 @@ const char* Folders::getHomeDirectory() bool Folders::makeDirectory(const std::string& path) { #ifdef _WIN32 int status = CreateDirectory(path.c_str(), NULL); - return status != 0 || GetLastError() == ERROR_ALREADY_EXISTS; + return ((status != 0) || (GetLastError() == ERROR_ALREADY_EXISTS)); #else errno = 0; int status = mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); - return status == 0 || errno == EEXIST; + return ((status == 0) || (errno == EEXIST)); #endif }