riched20: Initialize wEffects field before setting bits in it (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2015-12-29 22:44:30 +03:00 committed by Alexandre Julliard
parent 74e71b6643
commit c5b68d1db2
1 changed files with 2 additions and 1 deletions

View File

@ -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 */