10 Oct
2023
10 Oct
'23
11:41 a.m.
Nikolay Sivov (@nsivov) commented about dlls/msxml4/tests/domdoc.c:
+ +START_TEST(domdoc) +{ + HRESULT hr; + IXMLDOMDocument2 *doc; + + hr = CoInitialize( NULL ); + ok( hr == S_OK, "failed to init com\n"); + if (hr != S_OK) return; + + hr = CoCreateInstance(&CLSID_DOMDocument40, NULL, CLSCTX_INPROC_SERVER, &IID_IXMLDOMDocument2, (void **)&doc); + if (hr != S_OK) + { + win_skip("class &CLSID_DOMDocument40 not supported\n"); + return; + } Msxml6 needs a similar check. The return after CoInit() failure could be removed, that's not going to be a problem.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4047#note_48194