Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c1a8fbbb
Commit
c1a8fbbb
authored
Oct 19, 2016
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Swap check for NULL ptr and first usage (Coverity).
Signed-off-by:
Marcus Meissner
<
marcus@jet.franken.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af5b4140
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
para.c
dlls/riched20/para.c
+3
-1
No files found.
dlls/riched20/para.c
View file @
c1a8fbbb
...
...
@@ -156,7 +156,7 @@ static ME_String *para_num_get_str( ME_Paragraph *para, WORD num )
{
/* max 4 Roman letters (representing '8') / decade + '(' + ')' */
ME_String
*
str
=
ME_MakeStringEmpty
(
20
+
2
);
WCHAR
*
p
=
str
->
szData
;
WCHAR
*
p
;
static
const
WCHAR
fmtW
[]
=
{
'%'
,
'd'
,
0
};
static
const
WORD
letter_base
[]
=
{
1
,
26
,
26
*
26
,
26
*
26
*
26
};
/* roman_base should start on a '5' not a '1', otherwise the 'total' code will need adjusting.
...
...
@@ -177,6 +177,8 @@ static ME_String *para_num_get_str( ME_Paragraph *para, WORD num )
if
(
!
str
)
return
NULL
;
p
=
str
->
szData
;
if
((
para
->
fmt
.
wNumberingStyle
&
0xf00
)
==
PFNS_PARENS
)
*
p
++
=
'('
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment