We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5317e8 commit cb8e3f7Copy full SHA for cb8e3f7
util/env_win.cc
@@ -462,8 +462,8 @@ bool Win32MapFile::_UnmapCurrentRegion()
462
// Defer syncing this data until next Sync() call, if any
463
_pending_sync = true;
464
}
465
- UnmapViewOfFile(_base);
466
- CloseHandle(_base_handle);
+ if (!UnmapViewOfFile(_base) || !CloseHandle(_base_handle))
+ result = false;
467
_file_offset += _limit - _base;
468
_base = NULL;
469
_base_handle = NULL;
0 commit comments