summaryrefslogtreecommitdiff
path: root/lib/cdutils.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2004-05-01 11:48:57 +0000
committerpixel <pixel>2004-05-01 11:48:57 +0000
commitd834a8d9332f18642c5511cdd56085e366635a61 (patch)
tree022d981fe51745bd8501835494ad914faedd2613 /lib/cdutils.cpp
parent2d6892d1a4d9cc0f189cd7aa7a1101d35d3519a2 (diff)
Fixes, changes, improvements, ...
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r--lib/cdutils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index 3ecea36..51e2e09 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: cdutils.cpp,v 1.26 2004-04-28 14:24:19 pixel Exp $ */
+/* $Id: cdutils.cpp,v 1.27 2004-05-01 11:48:58 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -844,8 +844,10 @@ ssize_t cdfile::read(void *buf, size_t count) throw (GeneralException) {
count = MIN(count, (size_t) (size - itell));
- if (!count)
+ if (!count) {
+ close();
return 0;
+ }
startsec = itell / sec_sizes[mode] + sector;
startbyte = itell % sec_sizes[mode];