Fix build on Windows
Jeffrey Pfau jeffrey@endrift.com
Fri, 24 Oct 2014 22:01:13 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/util/vfs.c
→
src/util/vfs.c
@@ -136,7 +136,7 @@ if (size > fileSize) {
size = fileSize; } vfd->hMap = CreateFileMapping((HANDLE) _get_osfhandle(vfd->fd), 0, createFlags, 0, size & 0xFFFFFFFF, 0); - return MapViewOfFile(hMap, mapFiles, 0, 0, size); + return MapViewOfFile(vfd->hMap, mapFiles, 0, 0, size); } static void _vfdUnmap(struct VFile* vf, void* memory, size_t size) {