From e3ad60f142ed92bfa425488e9c4c393a864c104c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 10 Mar 2003 21:00:48 +0000 Subject: [PATCH] add WildCode's error checking for win32 cpp handling --- tools/qfcc/source/cpp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/cpp.c b/tools/qfcc/source/cpp.c index 9c20ff2cd..6bfd5bcd5 100644 --- a/tools/qfcc/source/cpp.c +++ b/tools/qfcc/source/cpp.c @@ -199,7 +199,11 @@ preprocess_file (const char *filename) { FILE *tmp = fopen (tempname->str, "wt"); - + if (tmp == NULL) { + fprintf (stderr, "%s: qfcc was unable to open\n", + tempname->str); + exit(1); + } fclose (tmp); }