Checking whether closing succeeds
This commit is contained in:
parent
67efbda4a2
commit
20d6f2013b
1 changed files with 2 additions and 2 deletions
|
@ -462,8 +462,8 @@ bool Win32MapFile::_UnmapCurrentRegion()
|
||||||
// Defer syncing this data until next Sync() call, if any
|
// Defer syncing this data until next Sync() call, if any
|
||||||
_pending_sync = true;
|
_pending_sync = true;
|
||||||
}
|
}
|
||||||
UnmapViewOfFile(_base);
|
if (!UnmapViewOfFile(_base) || !CloseHandle(_base_handle))
|
||||||
CloseHandle(_base_handle);
|
result = false;
|
||||||
_file_offset += _limit - _base;
|
_file_offset += _limit - _base;
|
||||||
_base = NULL;
|
_base = NULL;
|
||||||
_base_handle = NULL;
|
_base_handle = NULL;
|
||||||
|
|
Loading…
Reference in a new issue