jscript: Fix array.reverse implementation.

oldstable
Piotr Caban 2010-01-25 03:49:24 +01:00 committed by Alexandre Julliard
parent db3d756c1e
commit 693c692564
1 changed files with 2 additions and 2 deletions

View File

@ -473,11 +473,11 @@ static HRESULT Array_reverse(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, DISP
l = length-k-1;
hres1 = jsdisp_propget_idx(jsthis, k, &v1, ei, sp);
if(FAILED(hres1))
if(FAILED(hres1) && hres1!=DISP_E_UNKNOWNNAME)
return hres1;
hres2 = jsdisp_propget_idx(jsthis, l, &v2, ei, sp);
if(FAILED(hres2)) {
if(FAILED(hres2) && hres2!=DISP_E_UNKNOWNNAME) {
VariantClear(&v1);
return hres2;
}