diff options
author | pixel <pixel> | 2003-12-26 20:05:58 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-12-26 20:05:58 +0000 |
commit | cf9fc04308a9dcc9fa70ee29d3718e75a0d7ebc5 (patch) | |
tree | a0783df834ee2e1798aa9572dd4ca0a878d7035c /lib/cdutils.cpp | |
parent | badf41b33bf879f8facf99a68374a8451ba4319d (diff) |
have to seek sectors....
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r-- | lib/cdutils.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 214964a..a538498 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.22 2003-12-26 20:03:32 pixel Exp $ */ +/* $Id: cdutils.cpp,v 1.23 2003-12-26 20:05:58 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -233,8 +233,8 @@ void cdutils::read_file(Handle * file, long size, int type, int number) { n = size / sec_sizes[type]; reste = size - n * sec_sizes[type]; - sector_seek(number); for (i = 0; i < n; i++) { + sector_seek(number + i); try { read_sector(sector, type); } @@ -244,6 +244,7 @@ void cdutils::read_file(Handle * file, long size, int type, int number) { file->write(sector, sec_sizes[type]); } + sector_seek(number + n); if (reste) { try { read_sector(sector, type); |