shithub: choc

Download patch

ref: 3fd9acf6e0d664858162ac369ae8670f40edea11
parent: 653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa
author: Simon Howard <[email protected]>
date: Wed Dec 3 17:09:22 EST 2008

Use FILE_MAP_COPY instead of FILE_MAP_ALL_ACCESS for mapping files
(thanks to Christian Chech).

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1407

--- a/src/w_file_win32.c
+++ b/src/w_file_win32.c
@@ -61,7 +61,7 @@
     }
 
     wad->wad.mapped = MapViewOfFile(wad->handle_map,
-                                    FILE_MAP_ALL_ACCESS,
+                                    FILE_MAP_COPY,
                                     0, 0, 0);
 
     if (wad->wad.mapped == NULL)