March 23, 2026
7:02 p.m.
Jacek Caban (@jacek) commented about dlls/vbscript/lex.c:
static int parse_hex_literal(parser_ctx_t *ctx, LONG *ret) { - const WCHAR *begin = ctx->ptr; + const WCHAR *begin; unsigned l = 0, d;
+ /* Skip leading zeros — Windows allows any number of them. */ + while(ctx->ptr[1] == '0' && hex_to_int(ctx->ptr[2]) != -1)
Why do we need the `hex_to_int` check here? Unless I am missing something, we could skip it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10384#note_133467