From 2b78f64c11a9542c633a6c2d3b2ad0a105ac0342 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 25 Sep 2017 16:19:30 -0400 Subject: [PATCH] Fixed PHYSFS_flush(). --- src/physfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/physfs.c b/src/physfs.c index 64861569..8267477a 100644 --- a/src/physfs.c +++ b/src/physfs.c @@ -169,7 +169,8 @@ static PHYSFS_Io *nativeIo_duplicate(PHYSFS_Io *io) static int nativeIo_flush(PHYSFS_Io *io) { - return __PHYSFS_platformFlush(io->opaque); + NativeIoInfo *info = (NativeIoInfo *) io->opaque; + return __PHYSFS_platformFlush(info->handle); } /* nativeIo_flush */ static void nativeIo_destroy(PHYSFS_Io *io)