[libbdplus-devel] Fix checking file_seek() return value
anonymous
git at videolan.org
Mon May 4 21:22:32 CEST 2015
libbdplus | branch: master | anonymous <anonymous at anonymous.org> | Mon May 4 22:22:12 2015 +0300| [b567dbb43770f5660854497ce6e5e550b341493b] | committer: anonymous
Fix checking file_seek() return value
> http://git.videolan.org/gitweb.cgi/libbdplus.git/?a=commit;h=b567dbb43770f5660854497ce6e5e550b341493b
---
src/libbdplus/bdsvm/trap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libbdplus/bdsvm/trap.c b/src/libbdplus/bdsvm/trap.c
index 617b60d..bf55856 100644
--- a/src/libbdplus/bdsvm/trap.c
+++ b/src/libbdplus/bdsvm/trap.c
@@ -1311,7 +1311,7 @@ uint32_t TRAP_MediaCheck(bdplus_config_t *config, uint8_t *FileName, uint32_t Fi
}
#endif
- if (file_seek(fd, seek, SEEK_SET)) {
+ if (file_seek(fd, seek, SEEK_SET) < 0) {
BD_DEBUG(DBG_BDPLUS|DBG_CRIT, "[TRAP] TRAP_MediaCheck: failed to seek %s to %"PRIu64"\n", (char *)FileName, seek);
file_close(fd);
return STATUS_INVALID_PARAMETER;
More information about the libbdplus-devel
mailing list