[PATCH v4 4/7] vbscript: Implement the SCRIPTITEM_CODEONLY flag.

Jacek Caban jacek at codeweavers.com
Tue Feb 11 07:33:36 CST 2020


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




More information about the wine-devel mailing list