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

Alexandre Julliard julliard at wine.codeweavers.com
Tue May 5 09:50:51 CDT 2015


Module: wine
Branch: master
Commit: a7b99a1f892693985f608b9286ab863763a88592
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7b99a1f892693985f608b9286ab863763a88592

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon May  4 18:01:59 2015 +0300

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

---

 dlls/shell32/tests/shlview.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/shell32/tests/shlview.c b/dlls/shell32/tests/shlview.c
index 2d323d9..cab0630 100644
--- a/dlls/shell32/tests/shlview.c
+++ b/dlls/shell32/tests/shlview.c
@@ -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);




More information about the wine-cvs mailing list