Fixed __PHYSFS_platformSeek().

This commit is contained in:
Ryan C. Gordon 2002-06-06 05:39:06 +00:00
parent 05b565422a
commit 2f15add38f
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos)
int fd = *((int *) opaque);
/* !!! FIXME: Use llseek where available. */
BAIL_IF_MACRO(lseek(fd, (int) pos, SEEK_SET) != 0, strerror(errno), 0);
BAIL_IF_MACRO(lseek(fd, (int) pos, SEEK_SET) == -1, strerror(errno), 0);
return(1);
} /* __PHYSFS_platformSeek */