Marcus Meissner : windowscodecs: Fixed incorrect memset (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 30 15:30:20 CDT 2014


Module: wine
Branch: master
Commit: 4cfad9c4625ee42206c977dd0e5001e68d98af8a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4cfad9c4625ee42206c977dd0e5001e68d98af8a

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat Jun 28 12:22:46 2014 +0200

windowscodecs: Fixed incorrect memset (Coverity).

---

 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;




More information about the wine-cvs mailing list