shell32: Implement GetSelectedCount() using IFolderView2::GetSelection().

This commit is contained in:
Nikolay Sivov 2015-05-04 18:29:21 +03:00 committed by Alexandre Julliard
parent be6e022f2d
commit a6163247cd
1 changed files with 13 additions and 2 deletions

View File

@ -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(