riched20: Add tests for IRichEditOle::QueryInterface.

This commit is contained in:
Jactry Zeng 2015-03-16 17:27:07 +08:00 committed by Alexandre Julliard
parent 0d7613fc98
commit 879261dd8b
1 changed files with 8 additions and 0 deletions

View File

@ -156,6 +156,14 @@ static void test_Interfaces(void)
ok(punk != NULL, "ITextSelection_QueryInterface\n");
IUnknown_Release(punk);
punk = NULL;
hres = IRichEditOle_QueryInterface(reOle, &IID_IOleClientSite, (void **) &punk);
ok(hres == E_NOINTERFACE, "IRichEditOle_QueryInterface\n");
punk = NULL;
hres = IRichEditOle_QueryInterface(reOle, &IID_IOleWindow, (void **) &punk);
ok(hres == E_NOINTERFACE, "IRichEditOle_QueryInterface\n");
ITextDocument_Release(txtDoc);
IRichEditOle_Release(reOle);
refcount = IRichEditOle_Release(reOle);