windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo.

This commit is contained in:
Michael Müller 2014-08-07 02:41:09 +02:00 committed by Alexandre Julliard
parent c5d75c3ae1
commit 23988fef9c

View file

@ -248,7 +248,7 @@ static HRESULT WINAPI PropertyBag_GetPropertyInfo(IPropertyBag2 *iface, ULONG iP
if (iProperty+cProperties > This->prop_count )
return WINCODEC_ERR_VALUEOUTOFRANGE;
*pcProperties = max(cProperties, This->prop_count-iProperty);
*pcProperties = min(cProperties, This->prop_count-iProperty);
for (i=0; i < *pcProperties; i++)
{