Skip to content

Commit

Permalink
Merge pull request #2587 from div72/port_pr_26090
Browse files Browse the repository at this point in the history
fs: fully initialize `_OVERLAPPED` for win32
  • Loading branch information
jamescowens authored Oct 24, 2022
2 parents ecbd246 + 35c0c62 commit 5c35305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,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;
Expand Down

0 comments on commit 5c35305

Please sign in to comment.