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,10 +489,12 @@ static HRESULT identifier_eval(exec_ctx_t *ctx, BSTR identifier, DWORD flags, ex
}
for(item = ctx->parser->script->named_items; item; item = item->next) {
if(item->flags & SCRIPTITEM_GLOBALMEMBERS) {
hres = disp_get_id(item->disp, identifier, 0, &id);
if(SUCCEEDED(hres))
break;
}
}
if(item) {
exprval_set_idref(ret, (IDispatch*)item->disp, id);