fnt2fon: janitorial IgnoredReturnValues.

Lionel Debroux lionel_debroux at yahoo.fr
Fri Sep 14 07:09:00 CDT 2007


---
 tools/fnt2fon.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tools/fnt2fon.c b/tools/fnt2fon.c
index e63aca6..2c5c74f 100644
--- a/tools/fnt2fon.c
+++ b/tools/fnt2fon.c
@@ -203,6 +203,12 @@ int main(int argc, char **argv)
 
     output_file = argv[argc - 1];
     ofp = fopen(output_file, "wb");
+    if(!ofp) {
+        fprintf(stderr, "Can't open %s\n", output_file);
+        usage(argv);
+        output_file = NULL;
+        exit(1);
+    }
 
     fwrite(MZ_hdr, sizeof(MZ_hdr), 1, ofp);
     fwrite(&NE_hdr, sizeof(NE_hdr), 1, ofp);
-- 
1.5.2.4


--------------080005020803080500020107--



More information about the wine-patches mailing list