summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/cdutils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp
index 81744e8..85780df 100644
--- a/lib/cdutils.cpp
+++ b/lib/cdutils.cpp
@@ -251,6 +251,8 @@ void cdutils::write_sector(Byte * buffer, int type, int number) {
if (number >= 0) {
sector_seek(number);
+ } else {
+ number = f_iso_r->tell() / 2352;
}
f_iso_r->read(old_sector, 2352);