aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2022-09-13 18:53:20 +0000
committerfanquake <fanquake@gmail.com>2022-09-14 11:55:10 +0100
commit02c9e564687af6ae2b0b6589108d502963f879cb (patch)
tree7175b69029e32aaf657d479d40e329039b05b0fe
parent13fd9ee5c2d747e9f74d3fd8e33a4f0c9eaa769c (diff)
downloadbitcoin-02c9e564687af6ae2b0b6589108d502963f879cb.tar.xz
fs: fully initialize _OVERLAPPED for win32
-rw-r--r--src/fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs.cpp b/src/fs.cpp
index 74b167e313..07cce269ed 100644
--- a/src/fs.cpp
+++ b/src/fs.cpp
@@ -126,7 +126,7 @@ bool FileLock::TryLock()
if (hFile == INVALID_HANDLE_VALUE) {
return false;
}
- _OVERLAPPED overlapped = {0};
+ _OVERLAPPED overlapped = {};
if (!LockFileEx(hFile, LOCKFILE_EXCLUSIVE_LOCK | LOCKFILE_FAIL_IMMEDIATELY, 0, std::numeric_limits<DWORD>::max(), std::numeric_limits<DWORD>::max(), &overlapped)) {
reason = GetErrorReason();
return false;