Nikolay Sivov : shell32: Implement GetSelectedCount() using IFolderView2:: GetSelection().
Module: wine Branch: master Commit: a6163247cd10e789f71db547c20233ceb5d88a06 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6163247cd10e789f71db547c2... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Mon May 4 18:29:21 2015 +0300 shell32: Implement GetSelectedCount() using IFolderView2::GetSelection(). --- dlls/shell32/shlview.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 1676996..8352157 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -3254,8 +3254,19 @@ static HRESULT WINAPI IShellFolderView_fnGetSelectedCount( UINT *count) { IShellViewImpl *This = impl_from_IShellFolderView(iface); - FIXME("(%p)->(%p) stub\n", This, count); - return E_NOTIMPL; + IShellItemArray *selection; + HRESULT hr; + + TRACE("(%p)->(%p)\n", This, count); + + *count = 0; + hr = IFolderView2_GetSelection(&This->IFolderView2_iface, FALSE, &selection); + if (FAILED(hr)) + return hr; + + hr = IShellItemArray_GetCount(selection, count); + IShellItemArray_Release(selection); + return hr; } static HRESULT WINAPI IShellFolderView_fnGetSelectedObjects(
participants (1)
-
Alexandre Julliard