Skip to content
Snippets Groups Projects
Commit abe424d6 authored by Steven Noonan's avatar Steven Noonan
Browse files

physfs: make PHYSFS_close behave like fclose with respect to error codes


Most of the PHYSFS_* functions behave like their fopen/fclose/etc counterparts,
returning 0 on success and nonzero on failure. PHYSFS_close is a special
snowflake and returns zero on failure.

This fixes this behavior so that functions expecting PHYSFS_close to behave
like fclose don't freak out.

Signed-off-by: default avatarSteven Noonan <steven@uplinklabs.net>
parent 2d00b03b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment