[PATCH 1/2] riched20: Implement IOleWindow interface.

Nikolay Sivov bunglehead at gmail.com
Mon Mar 16 02:42:13 CDT 2015


On 16.03.2015 10:36, Jactry Zeng wrote:
> +  create_interfaces(&w, &reOle, &txtDoc, NULL);
> +  hres = IRichEditOle_GetClientSite(reOle, &clientSite);
> +  ok(hres == S_OK, "IRichEditOle_QueryInterface: 0x%08x\n", hres);
> +  refcount1 = get_refcount((IUnknown *)clientSite);
> +  todo_wine ok(refcount1 == 1, "got wrong ref count: %d\n", refcount1);
> +
> +  hres = IOleClientSite_QueryInterface(clientSite, &IID_IOleClientSite, (void **)&clientSite1);
> +  ok(hres == S_OK, "IOleClientSite_QueryInterface: 0x%08x\n", hres);
> +  ok(clientSite == clientSite1, "Should not return a new pointer.\n");
> +  refcount1 = get_refcount((IUnknown *)clientSite);
> +  todo_wine ok(refcount1 == 2, "got wrong ref count: %d\n", refcount1);

Hi, Jactry.

Do we have a test somewhere showing that IRichEditOle cannot be queried 
directly for IOleClientSite and IOleWindow?



More information about the wine-devel mailing list