[PATCH 2/3] riched20: Add stub for ITextDocument2 interface.

Nikolay Sivov nsivov at codeweavers.com
Mon Sep 10 12:05:05 CDT 2018


On 09/10/2018 06:03 PM, Jactry Zeng wrote:

> @@ -209,6 +210,7 @@ typedef struct IRichEditOleImpl {
>       IUnknown IUnknown_inner;
>       IRichEditOle IRichEditOle_iface;
>       ITextDocument ITextDocument_iface;
> +    ITextDocument2 ITextDocument2_iface;
>       IUnknown *outer_unk;
>       LONG ref;

It's a bit of a mess, a simple test would show which one should be 
separate, ITextDocument2Old or ITextDocument2.

Of course it's possible all of them are separated.

> +static HRESULT WINAPI ITextDocument2_fnGetTypeInfo(ITextDocument2 *iface, UINT info, LCID lcid,
> +                                                   ITypeInfo **type_info)
> +{
> +    IRichEditOleImpl *This = impl_from_ITextDocument2(iface);
> +
> +    return ITextDocument_GetTypeInfo(&This->ITextDocument_iface, info, lcid, type_info);
> +}
Does that work though? Which typeinfo is returned in this case?



More information about the wine-devel mailing list