mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-28 14:45:51 +00:00
Fixed Win32 compiler errors related to paths.
This commit is contained in:
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user