summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2008-08-08 22:38:25 +0000
committerSimon Howard2008-08-08 22:38:25 +0000
commit4065884e2f06b7e24dd929db82f59219e34b4127 (patch)
tree2151c450ebbce875b3208bae8d97780c40793d11 /src
parentc14396d9f4132b8d0866e0307be7a5085edd7ddb (diff)
downloadchocolate-doom-4065884e2f06b7e24dd929db82f59219e34b4127.tar.gz
chocolate-doom-4065884e2f06b7e24dd929db82f59219e34b4127.tar.bz2
chocolate-doom-4065884e2f06b7e24dd929db82f59219e34b4127.zip
Use FILE_MAP_ALL_ACCESS rather than FILE_MAP_READ when mmapping files
under Windows (thanks entryway) Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1177
Diffstat (limited to 'src')
-rw-r--r--src/w_file_win32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w_file_win32.c b/src/w_file_win32.c
index 40f68973..0ec6b56c 100644
--- a/src/w_file_win32.c
+++ b/src/w_file_win32.c
@@ -60,7 +60,9 @@ static void MapFile(win32_wad_file_t *wad, char *filename)
return;
}
- wad->wad.mapped = MapViewOfFile(wad->handle_map, FILE_MAP_READ, 0, 0, 0);
+ wad->wad.mapped = MapViewOfFile(wad->handle_map,
+ FILE_MAP_ALL_ACCESS,
+ 0, 0, 0);
if (wad->wad.mapped == NULL)
{