shell32: Implement GetSelectedCount() using IFolderView2::GetSelection().
This commit is contained in:
parent
be6e022f2d
commit
a6163247cd
|
@ -3254,8 +3254,19 @@ static HRESULT WINAPI IShellFolderView_fnGetSelectedCount(
|
||||||
UINT *count)
|
UINT *count)
|
||||||
{
|
{
|
||||||
IShellViewImpl *This = impl_from_IShellFolderView(iface);
|
IShellViewImpl *This = impl_from_IShellFolderView(iface);
|
||||||
FIXME("(%p)->(%p) stub\n", This, count);
|
IShellItemArray *selection;
|
||||||
return E_NOTIMPL;
|
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(
|
static HRESULT WINAPI IShellFolderView_fnGetSelectedObjects(
|
||||||
|
|
Loading…
Reference in New Issue