diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/isobuilder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |