[PATCH] windowscodecs: fixed incorrect memset (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Jun 28 05:22:46 CDT 2014


1224007 Memset buffer size of 0
---
 dlls/windowscodecs/pngformat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 73416eb..a8ecb73 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -1138,7 +1138,7 @@ static HRESULT WINAPI PngFrameEncode_Initialize(IWICBitmapFrameEncode *iface,
             return hr;
     }
     else
-        memset(opt_values, sizeof(opt_values), 0);
+        memset(opt_values, 0, sizeof(opt_values));
 
     if (V_VT(&opt_values[0]) == VT_EMPTY)
         interlace = FALSE;
-- 
1.8.4.5




More information about the wine-patches mailing list