Commit e21588ae authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Pass correct cpbegin to InitMatch.

parent 492732aa
......@@ -3322,7 +3322,7 @@ static HRESULT do_regexp_match_next(script_ctx_t *ctx, RegExpInstance *regexp, D
REGlobalData gData;
DWORD matchlen;
gData.cpbegin = *cp;
gData.cpbegin = str;
gData.cpend = str + len;
gData.start = *cp-str;
gData.skipped = 0;
......@@ -3384,7 +3384,7 @@ static HRESULT do_regexp_match_next(script_ctx_t *ctx, RegExpInstance *regexp, D
(*parens)[i].str = NULL;
(*parens)[i].len = 0;
}else {
(*parens)[i].str = *cp + result->parens[i].index;
(*parens)[i].str = str + result->parens[i].index;
(*parens)[i].len = result->parens[i].length;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment