summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)
{