Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed PHYSFS_flush().
  • Loading branch information
icculus committed Sep 25, 2017
1 parent 395b2b0 commit 2b78f64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/physfs.c
Expand Up @@ -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)
Expand Down

0 comments on commit 2b78f64

Please sign in to comment.