[patch 1/1] dlls/windowscodecs/pngformat.c: implemented 'PngDecoder_Block_GetCount'

Nikolay Sivov bunglehead at gmail.com
Fri Oct 5 02:55:24 CDT 2012


On 10/5/2012 06:43, max+git at mtew.isa-geek.net wrote:
> From: Max TenEyck Woodbury <max+git at mtew.isa-geek.net>
>
> ---
>   dlls/windowscodecs/pngformat.c |    6 ++++--
>   1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
> index 686f9c6..e8e7cbe 100644
> --- a/dlls/windowscodecs/pngformat.c
> +++ b/dlls/windowscodecs/pngformat.c
> @@ -899,8 +899,10 @@ static HRESULT WINAPI PngDecoder_Block_GetContainerFormat(IWICMetadataBlockReade
>   static HRESULT WINAPI PngDecoder_Block_GetCount(IWICMetadataBlockReader *iface,
>       UINT *pcCount)
>   {
> -    FIXME("%p,%p: stub\n", iface, pcCount);
> -    return E_NOTIMPL;
> +    PngDecoder *This = impl_from_IWICMetadataBlockReader(iface);
> +    if (!pcCount) return E_INVALIDARG;
> +    *pcCount = This->ref;
> +    return S_OK;
>   }
>   
>   static HRESULT WINAPI PngDecoder_Block_GetReaderByIndex(IWICMetadataBlockReader *iface,
Return reference count as block count?



More information about the wine-devel mailing list