Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7cac7bb9
Commit
7cac7bb9
authored
Apr 01, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Always initialize context and font table pointers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5cf42c0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
opentype.c
dlls/dwrite/opentype.c
+3
-0
font.c
dlls/dwrite/tests/font.c
+9
-0
No files found.
dlls/dwrite/opentype.c
View file @
7cac7bb9
...
...
@@ -967,6 +967,9 @@ HRESULT opentype_get_font_table(IDWriteFontFileStream *stream, DWRITE_FONT_FACE_
if
(
found
)
*
found
=
FALSE
;
if
(
table_size
)
*
table_size
=
0
;
*
table_data
=
NULL
;
*
table_context
=
NULL
;
if
(
type
==
DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION
)
{
const
TTC_Header_V1
*
ttc_header
;
void
*
ttc_context
;
...
...
dlls/dwrite/tests/font.c
View file @
7cac7bb9
...
...
@@ -2923,6 +2923,15 @@ static void test_TryGetFontTable(void)
IDWriteFontFace_ReleaseFontTable
(
fontface
,
context2
);
IDWriteFontFace_ReleaseFontTable
(
fontface
,
context
);
/* table does not exist */
exists
=
TRUE
;
context
=
(
void
*
)
0xdeadbeef
;
table
=
(
void
*
)
0xdeadbeef
;
hr
=
IDWriteFontFace_TryGetFontTable
(
fontface
,
0xabababab
,
&
table
,
&
size
,
&
context
,
&
exists
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
exists
==
FALSE
,
"got %d
\n
"
,
exists
);
ok
(
context
==
NULL
&&
table
==
NULL
,
"got context %p, table pointer %p
\n
"
,
context
,
table
);
IDWriteFontFace_Release
(
fontface
);
IDWriteFontFile_Release
(
file
);
IDWriteFactory_Release
(
factory
);
...
...
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