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
34823028
Commit
34823028
authored
Oct 27, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Allow null arguments in opentype_get_font_table().
parent
1ab456fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
opentype.c
dlls/dwrite/opentype.c
+4
-3
No files found.
dlls/dwrite/opentype.c
View file @
34823028
...
...
@@ -322,7 +322,8 @@ HRESULT opentype_get_font_table(IDWriteFontFileStream *stream, DWRITE_FONT_FACE_
int
table_count
,
table_offset
=
0
;
int
i
;
*
found
=
FALSE
;
if
(
found
)
*
found
=
FALSE
;
if
(
table_size
)
*
table_size
=
0
;
if
(
type
==
DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION
)
{
const
TTC_Header_V1
*
ttc_header
;
...
...
@@ -363,8 +364,8 @@ HRESULT opentype_get_font_table(IDWriteFontFileStream *stream, DWRITE_FONT_FACE_
int
length
=
GET_BE_DWORD
(
table_record
->
length
);
IDWriteFontFileStream_ReleaseFileFragment
(
stream
,
table_record_context
);
*
found
=
TRUE
;
*
table_size
=
length
;
if
(
found
)
*
found
=
TRUE
;
if
(
table_size
)
*
table_size
=
length
;
hr
=
IDWriteFontFileStream_ReadFileFragment
(
stream
,
table_data
,
offset
,
length
,
table_context
);
}
...
...
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