Nikolay Sivov : shell32: Implement IShellFolderView:: QuerySupport no-op method.
Alexandre Julliard
julliard at winehq.org
Mon Mar 22 11:12:06 CDT 2010
Module: wine
Branch: master
Commit: 01ebc665357af6dbacec86308b49ef11aacdee87
URL: http://source.winehq.org/git/wine.git/?a=commit;h=01ebc665357af6dbacec86308b49ef11aacdee87
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Mar 22 03:25:11 2010 +0300
shell32: Implement IShellFolderView::QuerySupport no-op method.
---
dlls/shell32/shlview.c | 4 ++--
dlls/shell32/tests/shlview.c | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index e60a765..8e9323a 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -3188,8 +3188,8 @@ static HRESULT WINAPI IShellFolderView_fnQuerySupport(
UINT *support)
{
IShellViewImpl *This = impl_from_IShellFolderView(iface);
- FIXME("(%p)->(%p) stub\n", This, support);
- return E_NOTIMPL;
+ TRACE("(%p)->(%p)\n", This, support);
+ return S_OK;
}
static HRESULT WINAPI IShellFolderView_fnSetAutomationObject(
diff --git a/dlls/shell32/tests/shlview.c b/dlls/shell32/tests/shlview.c
index 6f08f18..82e198b 100644
--- a/dlls/shell32/tests/shlview.c
+++ b/dlls/shell32/tests/shlview.c
@@ -547,6 +547,7 @@ static void test_IShellFolderView(void)
IShellFolderView *folderview;
IShellFolder *desktop;
IShellView *view;
+ UINT i;
HRESULT hr;
hr = SHGetDesktopFolder(&desktop);
@@ -572,6 +573,14 @@ static void test_IShellFolderView(void)
hr = IShellFolderView_SetRedraw(folderview, TRUE);
ok(hr == S_OK, "got (0x%08x)\n", hr);
+ /* ::QuerySupport */
+ hr = IShellFolderView_QuerySupport(folderview, NULL);
+ ok(hr == S_OK, "got (0x%08x)\n", hr);
+ i = 0xdeadbeef;
+ hr = IShellFolderView_QuerySupport(folderview, &i);
+ ok(hr == S_OK, "got (0x%08x)\n", hr);
+ ok(i == 0xdeadbeef, "got %d\n", i);
+
IShellFolderView_Release(folderview);
IShellView_Release(view);
More information about the wine-cvs
mailing list