From e3afab26917f4dc952dd10f0b33da6e38c6db6c2 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 19 Oct 2008 10:59:32 +0100 Subject: [PATCH] wrc: Don't accept "0" as a valid codepage in "#pragma code_page" directives. --- tools/wrc/parser.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l index 6d5189a9c78..863878a7093 100644 --- a/tools/wrc/parser.l +++ b/tools/wrc/parser.l @@ -373,7 +373,7 @@ static unsigned long xstrtoul(const char *nptr, char **endptr, int base) yy_pop_state(); while (*p < '0' || *p > '9') p++; current_codepage = strtol( p, NULL, 10 ); - if (current_codepage && current_codepage != CP_UTF8 && !wine_cp_get_table( current_codepage )) + if (current_codepage != CP_UTF8 && !wine_cp_get_table( current_codepage )) { parser_error("Codepage %d not supported", current_codepage); current_codepage = 0; -- 2.11.4.GIT