Fixed PHYSFS_flush().

This commit is contained in:
Ryan C. Gordon 2017-09-25 16:19:30 -04:00
parent 395b2b02dd
commit 2b78f64c11
1 changed files with 2 additions and 1 deletions

View File

@ -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)