summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-12-03 22:09:22 +0000
committerSimon Howard2008-12-03 22:09:22 +0000
commit3fd9acf6e0d664858162ac369ae8670f40edea11 (patch)
tree23f55ae16ade721e5dbe183b558ded21b61b952b /src
parent653bf3a0b5c78c7106ea8c9d48c3bb300c0481aa (diff)
downloadchocolate-doom-3fd9acf6e0d664858162ac369ae8670f40edea11.tar.gz
chocolate-doom-3fd9acf6e0d664858162ac369ae8670f40edea11.tar.bz2
chocolate-doom-3fd9acf6e0d664858162ac369ae8670f40edea11.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/w_file_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w_file_win32.c b/src/w_file_win32.c
index 0ec6b56c..05d3c445 100644
--- a/src/w_file_win32.c
+++ b/src/w_file_win32.c
@@ -61,7 +61,7 @@ static void MapFile(win32_wad_file_t *wad, char *filename)
}
wad->wad.mapped = MapViewOfFile(wad->handle_map,
- FILE_MAP_ALL_ACCESS,
+ FILE_MAP_COPY,
0, 0, 0);
if (wad->wad.mapped == NULL)