mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 16:00:51 +00:00
fix return value check for fseek
This commit is contained in:
parent
3c39d68294
commit
31592fee64
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ static int safe_fread (void *buf, int count, void * fd)
|
||||||
|
|
||||||
static int safe_fseek (void * fd, long ofs, int whence)
|
static int safe_fseek (void * fd, long ofs, int whence)
|
||||||
{
|
{
|
||||||
if (FLUID_FSEEK((FILE *)fd, ofs, whence) == -1) {
|
if (FLUID_FSEEK((FILE *)fd, ofs, whence) != 0) {
|
||||||
FLUID_LOG (FLUID_ERR, _("File seek failed with offset = %ld and whence = %d"), ofs, whence);
|
FLUID_LOG (FLUID_ERR, _("File seek failed with offset = %ld and whence = %d"), ofs, whence);
|
||||||
return FLUID_FAILED;
|
return FLUID_FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue