wrc: Don't accept "0" as a valid codepage in "#pragma code_page" directives.
This commit is contained in:
parent
c70f6a3933
commit
e3afab2691
|
@ -373,7 +373,7 @@ static unsigned long xstrtoul(const char *nptr, char **endptr, int base)
|
||||||
yy_pop_state();
|
yy_pop_state();
|
||||||
while (*p < '0' || *p > '9') p++;
|
while (*p < '0' || *p > '9') p++;
|
||||||
current_codepage = strtol( p, NULL, 10 );
|
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);
|
parser_error("Codepage %d not supported", current_codepage);
|
||||||
current_codepage = 0;
|
current_codepage = 0;
|
||||||
|
|
Loading…
Reference in New Issue