bugfix: error message on <file not found> without last guessed extension
authorboehme <boehme>
Wed, 24 Oct 2001 18:37:17 +0000 (18:37 +0000)
committerboehme <boehme>
Wed, 24 Oct 2001 18:37:17 +0000 (18:37 +0000)
src/jpeg2swf.c

index 2a70cae..4781b48 100644 (file)
@@ -175,7 +175,7 @@ int CheckInputFile(char * fname,char ** realname)
         if ((f=fopen(s,"rb"))==NULL)\r
         { sprintf(s,"%s.JPEG",fname);\r
           if ((f=fopen(s,"rb"))==NULL)\r
-            return 0;\r
+            return -1;\r
         }\r
       }\r
     }\r