eina_file_win32: also check for copy before unmapping region.

This commit is contained in:
Al Poole 2017-12-02 11:45:53 +00:00
parent 1711363725
commit 1be1ef168a
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ eina_file_real_close(Eina_File *file)
if (file->handle != INVALID_HANDLE_VALUE)
{
if (file->global_map != MAP_FAILED)
if (!file->copied && file->global_map != MAP_FAILED)
UnmapViewOfFile(file->global_map);
CloseHandle(file->handle);
}