31 Jan
2024
31 Jan
'24
8:38 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/htmlwindow.c:
+ return NULL; + + /* Native assumes it's VT_DISPATCH and doesn't check it */ + hres = IDispatch_QueryInterface(V_DISPATCH(&var), &IID_IHTMLWindow2, (void**)&source); + IDispatch_Release(V_DISPATCH(&var)); + if(hres != S_OK) + return NULL; + + if(compat_mode < COMPAT_MODE_IE9) { + IHTMLWindow2 *tmp; + hres = IHTMLWindow2_get_self(source, &tmp); + if(hres == S_OK) { + IHTMLWindow2_Release(source); + source = tmp; + } + } Why is it needed?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4986#note_59724