aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-01 11:50:43 +0200
committerMartin Ridgers <[email protected]>2021-10-01 11:50:43 +0200
commita2dc648979bad70037e19ce75ae506f9455e8fd3 (patch)
tree4d902270db982a24df05eecdf53d0535b601d582 /zencore/filesystem.cpp
parentRemoved `-fshort-wchar` compiler flag on Linux (diff)
parentAdded upstream cache perf metrics. (diff)
downloadzen-a2dc648979bad70037e19ce75ae506f9455e8fd3.tar.xz
zen-a2dc648979bad70037e19ce75ae506f9455e8fd3.zip
Merged main
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 7a1f6c336..2d2603434 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -138,9 +138,9 @@ WipeDirectory(const wchar_t* DirPath)
}
}
} while (FindNextFileW(hFind, &FindData) == TRUE);
- }
- FindClose(hFind);
+ FindClose(hFind);
+ }
return true;
}
@@ -819,7 +819,7 @@ TEST_CASE("filesystem")
using namespace std::filesystem;
// GetExePath
- path BinPath = GetRunningExecutablePath();
+ path BinPath = GetRunningExecutablePath();
const bool ExpectedExe = BinPath.stem() == "zencore-test" || BinPath.stem() == "zenserver-test";
CHECK(ExpectedExe);
CHECK(is_regular_file(BinPath));