swf_output_save() now returns a negative value on failure
authorkramm <kramm>
Thu, 2 Jun 2005 17:06:20 +0000 (17:06 +0000)
committerkramm <kramm>
Thu, 2 Jun 2005 17:06:20 +0000 (17:06 +0000)
pdf2swf/pdf2swf.cc

index 4881fa8..cca5e84 100644 (file)
@@ -466,8 +466,9 @@ int main(int argn, char *argv[])
         }
         nup_pos++;
     }
-    if(!swf_output_save(swf, outputname))
+    if(swf_output_save(swf, outputname) < 0) {
         exit(1);
+    }
     msg("<notice> SWF written");
     swf_output_destroy(swf);