diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2022-09-13 18:53:20 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-09-14 11:55:10 +0100 |
commit | 02c9e564687af6ae2b0b6589108d502963f879cb (patch) | |
tree | 7175b69029e32aaf657d479d40e329039b05b0fe /src/fs.cpp | |
parent | 13fd9ee5c2d747e9f74d3fd8e33a4f0c9eaa769c (diff) |
fs: fully initialize _OVERLAPPED for win32
Diffstat (limited to 'src/fs.cpp')
-rw-r--r-- | src/fs.cpp | 2 |
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; |