Skip to content

Commit 02c9e56

Browse files
theunifanquake
authored andcommitted
fs: fully initialize _OVERLAPPED for win32
1 parent 13fd9ee commit 02c9e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ bool FileLock::TryLock()
126126
if (hFile == INVALID_HANDLE_VALUE) {
127127
return false;
128128
}
129-
_OVERLAPPED overlapped = {0};
129+
_OVERLAPPED overlapped = {};
130130
if (!LockFileEx(hFile, LOCKFILE_EXCLUSIVE_LOCK | LOCKFILE_FAIL_IMMEDIATELY, 0, std::numeric_limits<DWORD>::max(), std::numeric_limits<DWORD>::max(), &overlapped)) {
131131
reason = GetErrorReason();
132132
return false;

0 commit comments

Comments
 (0)