equal
deleted
inserted
replaced
345 static int iso_readimage(ISO9660Handle *handle, PHYSFS_uint64 where, |
345 static int iso_readimage(ISO9660Handle *handle, PHYSFS_uint64 where, |
346 void *buffer, PHYSFS_uint32 objSize, |
346 void *buffer, PHYSFS_uint32 objSize, |
347 PHYSFS_uint32 objCount) |
347 PHYSFS_uint32 objCount) |
348 { |
348 { |
349 BAIL_IF_MACRO(!__PHYSFS_platformGrabMutex(handle->mutex), |
349 BAIL_IF_MACRO(!__PHYSFS_platformGrabMutex(handle->mutex), |
350 ERR_LOCK_VIOLATION, -1) |
350 ERR_LOCK_VIOLATION, -1); |
351 int rc = -1; |
351 int rc = -1; |
352 if (where != handle->currpos) |
352 if (where != handle->currpos) |
353 GOTO_IF_MACRO(!__PHYSFS_platformSeek(handle->fhandle,where), NULL, |
353 GOTO_IF_MACRO(!__PHYSFS_platformSeek(handle->fhandle,where), NULL, |
354 unlockme); |
354 unlockme); |
355 rc = __PHYSFS_platformRead(handle->fhandle, buffer, objSize, objCount); |
355 rc = __PHYSFS_platformRead(handle->fhandle, buffer, objSize, objCount); |