all repos — mgba @ a26f654062a8daf6626831c0e3997e5c9685705c

mGBA Game Boy Advance Emulator

Windows: Fix build
Vicki Pfau vi@endrift.com
Wed, 12 Aug 2020 00:40:02 -0700
commit

a26f654062a8daf6626831c0e3997e5c9685705c

parent

5c1249f35092e45c356461d9f2fe16e54ef88ef3

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

jump to
M src/util/vfs/vfs-fd.csrc/util/vfs/vfs-fd.c

@@ -168,7 +168,7 @@

static void _vfdUnmap(struct VFile* vf, void* memory, size_t size) { UNUSED(size); struct VFileFD* vfd = (struct VFileFD*) vf; - FlushViewOfFile(buffer, size); + FlushViewOfFile(memory, size); size_t i; for (i = 0; i < HandleMappingListSize(&vfd->handles); ++i) { if (HandleMappingListGetPointer(&vfd->handles, i)->mapping == memory) {