[PATCH] riched20: Initialize wEffects field before setting bits in it (Coverity)
Nikolay Sivov
nsivov at codeweavers.com
Tue Dec 29 13:44:30 CST 2015
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
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 */
--
2.6.4
More information about the wine-patches
mailing list