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
605a40e4
Commit
605a40e4
authored
Jan 29, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Handle NULL fp more gracefully (Coverity).
parent
9eb4c73a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
reader.c
dlls/riched20/reader.c
+4
-2
No files found.
dlls/riched20/reader.c
View file @
605a40e4
...
@@ -871,8 +871,10 @@ static void ReadFontTbl(RTF_Info *info)
...
@@ -871,8 +871,10 @@ static void ReadFontTbl(RTF_Info *info)
break
;
break
;
}
}
fp
=
New
(
RTFFont
);
fp
=
New
(
RTFFont
);
if
(
fp
==
NULL
)
if
(
fp
==
NULL
)
{
ERR
(
"%s: cannot allocate font entry
\n
"
,
fn
);
ERR
(
"%s: cannot allocate font entry
\n
"
,
fn
);
break
;
}
fp
->
rtfNextFont
=
info
->
fontList
;
fp
->
rtfNextFont
=
info
->
fontList
;
info
->
fontList
=
fp
;
info
->
fontList
=
fp
;
...
@@ -992,7 +994,7 @@ static void ReadFontTbl(RTF_Info *info)
...
@@ -992,7 +994,7 @@ static void ReadFontTbl(RTF_Info *info)
TRACE
(
"default font codepage %d
\n
"
,
info
->
codePage
);
TRACE
(
"default font codepage %d
\n
"
,
info
->
codePage
);
}
}
}
}
if
(
fp
->
rtfFNum
==
-
1
)
if
(
!
fp
||
(
fp
->
rtfFNum
==
-
1
)
)
ERR
(
"%s: missing font number
\n
"
,
fn
);
ERR
(
"%s: missing font number
\n
"
,
fn
);
/*
/*
* Could check other pieces of structure here, too, I suppose.
* Could check other pieces of structure here, too, I suppose.
...
...
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