[PATCH 2/3] msscript: Added IOleControl stub

Jacek Caban jacek at codeweavers.com
Fri Jun 10 08:24:00 CDT 2016


Signed-off-by: Jacek Caban <jacek at codeweavers.com>


On 06/09/2016 07:40 PM, Nikolay Sivov wrote:
> +static void test_olecontrol(void)
> +{
> +    IOleControl *olecontrol;
> +    HRESULT hr;
> +
> +    hr = CoCreateInstance(&CLSID_ScriptControl, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
> +            &IID_IOleControl, (void**)&olecontrol);
> +    ok(hr == S_OK, "got 0x%08x\n", hr);
> +
> +    IOleControl_Release(olecontrol);
> +}

That's fine for now, but I'm not a big fun of adding CoCreateInstance
for each interface you test. Once we want to implement more complex
functions, you will need to use multiple interfaces on single control
instance anyway (for example set client site before do any real
embedding). Anyway, it may be moved later.

Thanks,
Jacek



More information about the wine-patches mailing list