jscript: Fixed replace string parsing.

Reported by Dan Kegel.
This commit is contained in:
Jacek Caban 2009-10-21 22:45:30 +02:00 committed by Alexandre Julliard
parent 0c8794614d
commit 571125455e
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ static HRESULT String_replace(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags, DI
}
idx = ptr2[1] - '0';
if(isdigitW(ptr[3]) && idx*10 + (ptr[2]-'0') <= parens_cnt) {
if(isdigitW(ptr2[2]) && idx*10 + (ptr2[2]-'0') <= parens_cnt) {
idx = idx*10 + (ptr[2]-'0');
ptr = ptr2+3;
}else if(idx && idx <= parens_cnt) {