diff options
| author | Stefan Boberg <[email protected]> | 2021-09-29 22:25:27 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-29 22:25:27 +0200 |
| commit | 3213c9609196d722ec09cf9e5cd1b617dde5bbdc (patch) | |
| tree | f4c5a9c191fe29ade9f8fdc98ecbd9788019b18b /zencore/filesystem.cpp | |
| parent | Removing deprecated RefPtr+stack based objects tests (diff) | |
| download | zen-3213c9609196d722ec09cf9e5cd1b617dde5bbdc.tar.xz zen-3213c9609196d722ec09cf9e5cd1b617dde5bbdc.zip | |
filesystem: Fixed issue with FindClose potentially closing an invalid handle
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index d1b8b7aeb..54ab2ad85 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; } |