Windows: Fix build

This commit is contained in:
Vicki Pfau 2020-08-12 00:40:02 -07:00
parent 5c1249f350
commit a26f654062
1 changed files with 1 additions and 1 deletions

View File

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