summaryrefslogtreecommitdiff
path: root/lib/isobuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/isobuilder.cpp')
-rw-r--r--lib/isobuilder.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/isobuilder.cpp b/lib/isobuilder.cpp
index 7928737..586e6f4 100644
--- a/lib/isobuilder.cpp
+++ b/lib/isobuilder.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: isobuilder.cpp,v 1.10 2003-12-26 19:58:13 pixel Exp $ */
+/* $Id: isobuilder.cpp,v 1.11 2004-01-03 15:04:47 pixel Exp $ */
#include "isobuilder.h"
@@ -780,11 +780,14 @@ isobuilder::PVD isobuilder::createpvd(Byte * buffer) {
return r;
}
-void isobuilder::close(Handle * cue, int mode) throw (GeneralException) {
+void isobuilder::close(Handle * cue, int mode, int nsects) throw (GeneralException) {
Byte datas[2048];
Byte * pdatas;
char * cdatas = (char *) datas;
int psize;
+
+ if (nsects < 0)
+ nsects = nsectors;
memset(datas, 0, 2048);
@@ -808,8 +811,8 @@ void isobuilder::close(Handle * cue, int mode) throw (GeneralException) {
sprintf(cdatas + 8, "%-32s", pvd.sysid.to_charp());
sprintf(cdatas + 40, "%-32s", pvd.volid.to_charp());
- *((Uint32 *) (datas + 80)) = nsectors;
- *((Uint32 *) (datas + 84)) = cdutils::swap_dword(nsectors);
+ *((Uint32 *) (datas + 80)) = nsects;
+ *((Uint32 *) (datas + 84)) = cdutils::swap_dword(nsects);
datas[120] = 1;
datas[121] = 0;