summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Poole <netstar@gmail.com>2017-12-02 11:45:53 +0000
committerAl Poole <netstar@gmail.com>2017-12-02 11:45:53 +0000
commit1be1ef168ac5d86ed46a147e3a93789cf1de0179 (patch)
treec2732f8fe0c9c4b4a45a518cc482c82e3abb10c1
parent1711363725ab44e73414bebfb339d402333b4a4d (diff)
eina_file_win32: also check for copy before unmapping region.
-rw-r--r--src/lib/eina/eina_file_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_win32.c b/src/lib/eina/eina_file_win32.c
index 0ebbfe6..9307b59 100644
--- a/src/lib/eina/eina_file_win32.c
+++ b/src/lib/eina/eina_file_win32.c
@@ -385,7 +385,7 @@ eina_file_real_close(Eina_File *file)
385 385
386 if (file->handle != INVALID_HANDLE_VALUE) 386 if (file->handle != INVALID_HANDLE_VALUE)
387 { 387 {
388 if (file->global_map != MAP_FAILED) 388 if (!file->copied && file->global_map != MAP_FAILED)
389 UnmapViewOfFile(file->global_map); 389 UnmapViewOfFile(file->global_map);
390 CloseHandle(file->handle); 390 CloseHandle(file->handle);
391 } 391 }