Просмотр исходного кода

Fixed __PHYSFS_platformSeek().

Ryan C. Gordon 24 лет назад
Родитель
Сommit
2f15add38f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      platform/posix.c

+ 1 - 1
platform/posix.c

@@ -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 */