Fixed Win32 compiler errors related to paths.

This commit is contained in:
Alexander Shaduri
2021-03-02 18:21:55 +04:00
parent 0cd5202e74
commit 0be08399a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ inline fs::path data_file_find(const std::string& domain, const std::string& fil
if (fs::exists(file_path, ec)) {
if (!allow_to_be_directory && fs::is_directory(file_path, ec)) {
debug_print_error("app", "%s: Data file \"[%s:]%s\" file found at \"%s\", but it is a directory.\n",
DBG_FUNC, domain.c_str(), file_path.string().c_str(), dir.c_str());
DBG_FUNC, domain.c_str(), file_path.string().c_str(), dir.string().c_str());
return fs::path();
}
debug_print_info("app", "%s: Data file \"[%s:]%s\" found at \"%s\".\n",
+1 -1
View File
@@ -473,7 +473,7 @@ inline bool fs_path_is_writable(const fs::path& path, std::error_code& ec)
fs::path path_to_check = path;
if (path_exists && is_directory) {
path_to_check /= "__test.txt";
path_exists = fs::exists(path_to_check.exists(), ignored_ec);
path_exists = fs::exists(path_to_check, ignored_ec);
}
// path_to_check either doesn't exist, or it's a file. try to open it.