jscript: Set the DISPID to DISPID_UNKNOWN if unknown.

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 2019-11-06 17:27:59 +02:00 committed by Alexandre Julliard
parent b6ed0ef4d5
commit 15fce35b59
1 changed files with 1 additions and 0 deletions

View File

@ -1083,6 +1083,7 @@ HRESULT jsdisp_get_id(jsdisp_t *jsdisp, const WCHAR *name, DWORD flags, DISPID *
}
TRACE("not found %s\n", debugstr_w(name));
*id = DISPID_UNKNOWN;
return DISP_E_UNKNOWNNAME;
}