Commit a7b99a1f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 71cae1fc
...@@ -938,6 +938,7 @@ static void test_IOleWindow(void) ...@@ -938,6 +938,7 @@ static void test_IOleWindow(void)
{ {
IShellFolder *desktop; IShellFolder *desktop;
IShellView *view; IShellView *view;
IOleWindow *wnd;
HRESULT hr; HRESULT hr;
hr = SHGetDesktopFolder(&desktop); hr = SHGetDesktopFolder(&desktop);
...@@ -946,6 +947,9 @@ static void test_IOleWindow(void) ...@@ -946,6 +947,9 @@ static void test_IOleWindow(void)
hr = IShellFolder_CreateViewObject(desktop, NULL, &IID_IShellView, (void**)&view); hr = IShellFolder_CreateViewObject(desktop, NULL, &IID_IShellView, (void**)&view);
ok(hr == S_OK, "got (0x%08x)\n", hr); 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 */ /* IShellView::ContextSensitiveHelp */
hr = IShellView_ContextSensitiveHelp(view, TRUE); hr = IShellView_ContextSensitiveHelp(view, TRUE);
ok(hr == E_NOTIMPL, "got (0x%08x)\n", hr); ok(hr == E_NOTIMPL, "got (0x%08x)\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment