windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo.
This commit is contained in:
parent
c5d75c3ae1
commit
23988fef9c
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue