Michael Müller : windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo.
Module: wine Branch: master Commit: 23988fef9cfc0c91d2770f66786d60c717385285 URL: http://source.winehq.org/git/wine.git/?a=commit;h=23988fef9cfc0c91d2770f6678... Author: Michael Müller <michael(a)fds-team.de> Date: Thu Aug 7 02:41:09 2014 +0200 windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo. --- dlls/windowscodecs/propertybag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/propertybag.c b/dlls/windowscodecs/propertybag.c index 02914ec..11fa5b1 100644 --- a/dlls/windowscodecs/propertybag.c +++ b/dlls/windowscodecs/propertybag.c @@ -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++) {
participants (1)
-
Alexandre Julliard