From 02c9e564687af6ae2b0b6589108d502963f879cb Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Tue, 13 Sep 2022 18:53:20 +0000 Subject: [PATCH] fs: fully initialize _OVERLAPPED for win32 --- src/fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.cpp b/src/fs.cpp index 74b167e3135..07cce269ede 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::max(), std::numeric_limits::max(), &overlapped)) { reason = GetErrorReason(); return false;