summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2005-01-30 14:46:24 +0000
committerpixel <pixel>2005-01-30 14:46:24 +0000
commit25c5b651fa3b7a394e507e7406749463efa6c900 (patch)
treef482418e3505f598c96b312dabb0b5913030dfee
parentcf454758925568d3183912c97f1ffa28a1718d8f (diff)
Fixed a small bug in cd-tool...
-rw-r--r--lib/isobuilder.cpp6
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;