all repos — mgba @ a265cf45a92bb76e21d386c0974deb137267ec2e

mGBA Game Boy Advance Emulator

Fix build on Windows
Jeffrey Pfau jeffrey@endrift.com
Fri, 24 Oct 2014 22:01:13 -0700
commit

a265cf45a92bb76e21d386c0974deb137267ec2e

parent

344364695e4900668c085de57c02f2306f52d85c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/util/vfs.csrc/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) {