make_xftmpl: Avoid comparing a char with EOF

André Hentschel nerv at dawncrow.de
Tue Feb 12 09:21:04 CST 2013


hint by puk
this superseds 94236
---
 tools/make_xftmpl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/make_xftmpl.c b/tools/make_xftmpl.c
index 85b373f..b5751ce 100644
--- a/tools/make_xftmpl.c
+++ b/tools/make_xftmpl.c
@@ -336,7 +336,7 @@ static BOOL parse_token(struct parser *parser)
                 if (len + 1 < sizeof(buffer))
                     buffer[len++] = c;
             }
-            if (c == EOF) {
+            if (c != '"') {
                 fprintf(stderr, "%s: Unterminated string (line %d).\n",
                         program_name, parser->line_no);
                 parser->error = TRUE;
-- 
1.8.0


-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list