diff options
| author | Martin Ridgers <[email protected]> | 2021-10-01 11:50:43 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-01 11:50:43 +0200 |
| commit | a2dc648979bad70037e19ce75ae506f9455e8fd3 (patch) | |
| tree | 4d902270db982a24df05eecdf53d0535b601d582 /zencore/filesystem.cpp | |
| parent | Removed `-fshort-wchar` compiler flag on Linux (diff) | |
| parent | Added upstream cache perf metrics. (diff) | |
| download | zen-a2dc648979bad70037e19ce75ae506f9455e8fd3.tar.xz zen-a2dc648979bad70037e19ce75ae506f9455e8fd3.zip | |
Merged main
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 6 |
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)); |