shell32/tests: A test for shellview QI for IOleWindow.

This commit is contained in:
Nikolay Sivov 2015-05-04 18:01:59 +03:00 committed by Alexandre Julliard
parent 71cae1fceb
commit a7b99a1f89
1 changed files with 4 additions and 0 deletions

View File

@ -938,6 +938,7 @@ static void test_IOleWindow(void)
{
IShellFolder *desktop;
IShellView *view;
IOleWindow *wnd;
HRESULT hr;
hr = SHGetDesktopFolder(&desktop);
@ -946,6 +947,9 @@ static void test_IOleWindow(void)
hr = IShellFolder_CreateViewObject(desktop, NULL, &IID_IShellView, (void**)&view);
ok(hr == S_OK, "got (0x%08x)\n", hr);
hr = IShellView_QueryInterface(view, &IID_IOleWindow, (void**)&wnd);
ok(hr == E_NOINTERFACE, "got (0x%08x)\n", hr);
/* IShellView::ContextSensitiveHelp */
hr = IShellView_ContextSensitiveHelp(view, TRUE);
ok(hr == E_NOTIMPL, "got (0x%08x)\n", hr);