Nikolay Sivov : riched20: Initialize wEffects field before setting bits in it (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Dec 30 18:33:43 CST 2015
Module: wine
Branch: master
Commit: c5b68d1db205cd0973c63d77ce0c0fb3880397bc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c5b68d1db205cd0973c63d77ce0c0fb3880397bc
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Dec 29 22:44:30 2015 +0300
riched20: Initialize wEffects field before setting bits in it (Coverity).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/riched20/editor.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 28c845c..a41f838 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -547,7 +547,8 @@ void ME_RTFParAttrHook(RTF_Info *info)
PARAFORMAT2 fmt;
fmt.cbSize = sizeof(fmt);
fmt.dwMask = 0;
-
+ fmt.wEffects = 0;
+
switch(info->rtfMinor)
{
case rtfParDef: /* restores default paragraph attributes */
More information about the wine-cvs
mailing list