[PATCH 3/3] shell32: Implement FolderItems_get_Count.

Nikolay Sivov bunglehead at gmail.com
Fri Sep 8 03:30:52 CDT 2017


On 08.09.2017 8:29, Alex Henrie wrote:
>  
>  static HRESULT WINAPI FolderItemsImpl_get_Count(FolderItems3 *iface, LONG *count)
>  {
> -    FIXME("(%p,%p)\n", iface, count);
> +    FolderItemsImpl *This = impl_from_FolderItems(iface);
>  
> -    return E_NOTIMPL;
> +    TRACE("(%p,%p)\n", iface, count);
> +
> +    *count = PathIsDirectoryW(V_BSTR(&This->dir)) ? This->item_count : 0;
> +    return S_OK;
>  }
>  

This looks too complicated. Why can't we always return item_count
without additional checks?



More information about the wine-devel mailing list