=?UTF-8?Q?Michael=20M=C3=BCller=20?=: windowscodecs: Fix number of returned properties in PropertyBag_GetPropertyInfo.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 7 14:52:28 CDT 2014
Module: wine
Branch: master
Commit: 23988fef9cfc0c91d2770f66786d60c717385285
URL: http://source.winehq.org/git/wine.git/?a=commit;h=23988fef9cfc0c91d2770f66786d60c717385285
Author: Michael Müller <michael at 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++)
{
More information about the wine-cvs
mailing list