From 25c5b651fa3b7a394e507e7406749463efa6c900 Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 30 Jan 2005 14:46:24 +0000 Subject: Fixed a small bug in cd-tool... --- lib/isobuilder.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/isobuilder.cpp b/lib/isobuilder.cpp index 80133b1..5d72abb 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.16 2004-12-17 11:48:41 pixel Exp $ */ +/* $Id: isobuilder.cpp,v 1.17 2005-01-30 14:46:24 pixel Exp $ */ #include "isobuilder.h" @@ -801,6 +801,10 @@ void isobuilder::close(Handle * cue, int mode, int nsects) throw (GeneralExcepti Byte * pdatas; char * cdatas = (char *) datas; int psize; + + if (!root) { + throw GeneralException("No root directory, no point of closing the iso."); + } if (nsects < 0) nsects = nsectors; -- cgit v1.2.3