wrc: Don't accept "0" as a valid codepage in "#pragma code_page" directives.

This commit is contained in:
Rob Shearman 2008-10-19 10:59:32 +01:00 committed by Alexandre Julliard
parent c70f6a3933
commit e3afab2691
1 changed files with 1 additions and 1 deletions

View File

@ -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;