[PATCH] Implement IShellFolderView::GetSelectedCount() basing on IFolderView

Nikolay Sivov nsivov at codeweavers.com
Sun Apr 18 09:57:39 CDT 2010


---
 dlls/shell32/shlview.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index 1d307b4..871f533 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -3111,8 +3111,10 @@ static HRESULT WINAPI IShellFolderView_fnGetSelectedCount(
     UINT *count)
 {
     IShellViewImpl *This = impl_from_IShellFolderView(iface);
-    FIXME("(%p)->(%p) stub\n", This, count);
-    return E_NOTIMPL;
+    IFolderView *folder = (IFolderView*)&This->lpvtblFolderView;
+
+    TRACE("(%p)->(%p)\n", This, count);
+    return IFolderView_ItemCount(folder, SVGIO_SELECTION, (INT*)count);
 }
 
 static HRESULT WINAPI IShellFolderView_fnGetSelectedObjects(
-- 
1.5.6.5


--=-0JgbBWfXjlzE1B+4fg/F--




More information about the wine-patches mailing list