jscript: Correctly handle SCRIPTITEM_GLOBALMEMBERS flag in identifier_eval.
This commit is contained in:
parent
6c72061507
commit
775a6b21e9
|
@ -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) {
|
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);
|
hres = disp_get_id(item->disp, identifier, 0, &id);
|
||||||
if(SUCCEEDED(hres))
|
if(SUCCEEDED(hres))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(item) {
|
if(item) {
|
||||||
exprval_set_idref(ret, (IDispatch*)item->disp, id);
|
exprval_set_idref(ret, (IDispatch*)item->disp, id);
|
||||||
|
|
Loading…
Reference in New Issue