fs: fully initialize _OVERLAPPED for win32

pull/26090/head
Cory Fields 2 years ago committed by fanquake
parent 13fd9ee5c2
commit 02c9e56468
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

@ -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;

Loading…
Cancel
Save