diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 21b8a1bf3c..4521be00be 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -528,9 +528,9 @@ bool DeleteDirRecursively(const std::string& directory) std::error_code error; const std::uintmax_t num_removed = std::filesystem::remove_all(StringToPath(directory), error); - const bool success = num_removed != 0 && !error; + const bool success = num_removed != static_cast(-1) && !error; if (!success) - ERROR_LOG_FMT(COMMON, "{}: {} failed {}", __func__, directory, error.message()); + ERROR_LOG_FMT(COMMON, "{}: {} failed. {}", __func__, directory, error.message()); return success; }