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
62cf70d3
Commit
62cf70d3
authored
Nov 26, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps: Don't crash on missing loca OTF table.
parent
3b729284
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
type1.c
dlls/wineps.drv/type1.c
+9
-0
No files found.
dlls/wineps.drv/type1.c
View file @
62cf70d3
...
...
@@ -226,11 +226,20 @@ static BOOL get_glyf_pos(HDC hdc, DWORD index, DWORD *start, DWORD *end)
*
start
=
*
end
=
0
;
len
=
GetFontData
(
hdc
,
MS_MAKE_TAG
(
'h'
,
'e'
,
'a'
,
'd'
),
0
,
NULL
,
0
);
if
(
len
==
GDI_ERROR
)
return
FALSE
;
head
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
GetFontData
(
hdc
,
MS_MAKE_TAG
(
'h'
,
'e'
,
'a'
,
'd'
),
0
,
head
,
len
);
loca_format
=
get_be_word
(
head
+
50
);
len
=
GetFontData
(
hdc
,
MS_MAKE_TAG
(
'l'
,
'o'
,
'c'
,
'a'
),
0
,
NULL
,
0
);
if
(
len
==
GDI_ERROR
)
{
len
=
GetFontData
(
hdc
,
MS_MAKE_TAG
(
'C'
,
'F'
,
'F'
,
' '
),
0
,
NULL
,
0
);
if
(
len
!=
GDI_ERROR
)
FIXME
(
"CFF tables not supported yet
\n
"
);
else
ERR
(
"loca table not found
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
head
);
return
FALSE
;
}
loca
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
GetFontData
(
hdc
,
MS_MAKE_TAG
(
'l'
,
'o'
,
'c'
,
'a'
),
0
,
loca
,
len
);
...
...
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