jscript: Correctly handle SCRIPTITEM_GLOBALMEMBERS flag in identifier_eval.

This commit is contained in:
Jacek Caban 2008-12-17 12:56:12 +01:00 committed by Alexandre Julliard
parent 6c72061507
commit 775a6b21e9
1 changed files with 5 additions and 3 deletions

View File

@ -489,9 +489,11 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, ex
}
for(item = ctx->parser->script->named_items; item; item = item->next) {
hres = disp_get_id(item->disp, identifier, 0, &id);
if(SUCCEEDED(hres))
break;
if(item->flags & SCRIPTITEM_GLOBALMEMBERS) {
hres = disp_get_id(item->disp, identifier, 0, &id);
if(SUCCEEDED(hres))
break;
}
}
if(item) {