Commit 23988fef authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo.

parent c5d75c3a
......@@ -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++)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment