platform/posix.c
changeset 255 f3726b21d48f
parent 251 0f4615263e32
child 259 bd65a0d74e9a
--- a/platform/posix.c	Thu Jun 06 05:38:47 2002 +0000
+++ b/platform/posix.c	Thu Jun 06 05:39:06 2002 +0000
@@ -430,7 +430,7 @@
     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 */