aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-04-11 16:07:47 +0200
committerGitHub Enterprise <[email protected]>2025-04-11 16:07:47 +0200
commit1bf45ed4d820be75ec0c677976463b09d50d4ac5 (patch)
treeb04c68bd5a2903aa109a32e3a33142cc5c983eaa
parent5.6.5 (diff)
downloadzen-1bf45ed4d820be75ec0c677976463b09d50d4ac5.tar.xz
zen-1bf45ed4d820be75ec0c677976463b09d50d4ac5.zip
use FindClose (#357)
* use FindClose
-rw-r--r--CHANGELOG.md3
-rw-r--r--src/zencore/filesystem.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 29f6e3ff1..8ffade404 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,7 @@
##
+-- Bugfix: Use proper FindClose call when using fallback when getting file attributes on windows
+
+## 5.6.5
- Bugfix: `zen builds` multipart download of large chunks could result in crash
- Bugfix: Fixed invalid hash check on messages from Jupiter when doing range http requests
- Bugfix: Handle temporary locked files more gracefully (Crowdstrike workaround)
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp
index 8ee21d9ab..ad796cb4a 100644
--- a/src/zencore/filesystem.cpp
+++ b/src/zencore/filesystem.cpp
@@ -281,7 +281,7 @@ WinGetFileAttributes(const std::filesystem::path& Path, std::error_code& Ec)
}
else
{
- CloseHandle(FindHandle);
+ FindClose(FindHandle);
Attributes = FindData.dwFileAttributes;
}
}