jscript: Implement the SCRIPTITEM_CODEONLY flag.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2020-02-20 21:26:54 +01:00 committed by Alexandre Julliard
parent 0242ae52e6
commit f32a729032
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ named_item_t *lookup_named_item(script_ctx_t *ctx, const WCHAR *item_name, unsig
for(item = ctx->named_items; item; item = item->next) {
if((item->flags & flags) == flags && !wcscmp(item->name, item_name)) {
if(!item->disp) {
if(!item->disp && (flags || !(item->flags & SCRIPTITEM_CODEONLY))) {
IUnknown *unk;
if(!ctx->site)