Hi Gabriel,
On 07.02.2020 14:55, Gabriel Ivăncescu wrote:
-named_item_t *lookup_named_item(script_ctx_t *ctx, const WCHAR *name, unsigned flags) +named_item_t *lookup_named_item(script_ctx_t *ctx, const WCHAR *name, unsigned flags, unsigned no_disp_flags) { named_item_t *item; HRESULT hres;
LIST_FOR_EACH_ENTRY(item, &ctx->named_items, named_item_t, entry) { if((item->flags & flags) == flags && !wcsicmp(item->name, name)) {
if(!item->disp) {
if(!item->disp && !(item->flags & no_disp_flags)) {
Can you just always check for SCRIPTITEM_CODEONLY before trying to fetch IDispatch instead of introducing an additional argument?
Thanks,
Jacek