From: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> Prevent its existence from being flaky during getOwnPropertyNames. Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- dlls/mshtml/dispex.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c index dc57cfd7703..6adbcbe4beb 100644 --- a/dlls/mshtml/dispex.c +++ b/dlls/mshtml/dispex.c @@ -3046,9 +3046,19 @@ static HRESULT prototype_find_dispid(DispatchEx *dispex, const WCHAR *name, DWOR return hres; } +static HRESULT prototype_next_dispid(DispatchEx *dispex, DISPID id, DISPID *pid) +{ + if(id == DISPID_STARTENUM) { + HRESULT hres = dispex_get_id(dispex, L"constructor", 0, &id); + if(hres != S_OK) return hres; + } + return S_FALSE; +} + static const dispex_static_data_vtbl_t prototype_dispex_vtbl = { .destructor = prototype_destructor, .find_dispid = prototype_find_dispid, + .next_dispid = prototype_next_dispid, }; HRESULT get_prototype(HTMLInnerWindow *script_global, object_id_t id, DispatchEx **ret) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7986