From 690e02a461e1282bcb58887fae365f6fa98bbcd5 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Tue, 19 Aug 2008 22:28:18 +0200 Subject: [PATCH] Revert Mario workaround to deal with wrong error codes. --- libisofs/stream.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libisofs/stream.c b/libisofs/stream.c index a152144..dd747cf 100644 --- a/libisofs/stream.c +++ b/libisofs/stream.c @@ -588,12 +588,7 @@ off_t iso_stream_get_size(IsoStream *stream) inline int iso_stream_read(IsoStream *stream, void *buf, size_t count) { - int ret; - - ret= stream->class->read(stream, buf, count); - if(ret<0) - return ISO_FILE_READ_ERROR; - return ret; + return stream->class->read(stream, buf, count); } inline