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
4b2bfb4a
Commit
4b2bfb4a
authored
Jun 14, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Correct an endless loop in Chaining Contextual Substitution if it is a dead rule.
parent
0ce27385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
shape.c
dlls/usp10/shape.c
+14
-10
No files found.
dlls/usp10/shape.c
View file @
4b2bfb4a
...
...
@@ -1026,20 +1026,24 @@ static INT GSUB_apply_ChainContextSubst(const GSUB_LookupList* lookup, const GSU
ccsf3_4
=
(
const
GSUB_ChainContextSubstFormat3_4
*
)(((
LPBYTE
)
ccsf3_3
)
+
sizeof
(
GSUB_ChainContextSubstFormat3_3
)
+
(
sizeof
(
WORD
)
*
(
GET_BE_WORD
(
ccsf3_3
->
LookaheadGlyphCount
)
-
1
)));
for
(
k
=
0
;
k
<
GET_BE_WORD
(
ccsf3_4
->
SubstCount
);
k
++
)
if
(
GET_BE_WORD
(
ccsf3_4
->
SubstCount
)
)
{
int
lookupIndex
=
GET_BE_WORD
(
ccsf3_4
->
SubstLookupRecord
[
k
].
LookupListIndex
);
int
SequenceIndex
=
GET_BE_WORD
(
ccsf3_4
->
SubstLookupRecord
[
k
].
SequenceIndex
)
*
write_dir
;
TRACE
(
"SUBST: %i -> %i %i
\n
"
,
k
,
SequenceIndex
,
lookupIndex
);
newIndex
=
GSUB_apply_lookup
(
lookup
,
lookupIndex
,
glyphs
,
glyph_index
+
SequenceIndex
,
write_dir
,
glyph_count
);
if
(
newIndex
==
-
1
)
for
(
k
=
0
;
k
<
GET_BE_WORD
(
ccsf3_4
->
SubstCount
);
k
++
)
{
ERR
(
"Chain failed to generate a glyph
\n
"
);
continue
;
int
lookupIndex
=
GET_BE_WORD
(
ccsf3_4
->
SubstLookupRecord
[
k
].
LookupListIndex
);
int
SequenceIndex
=
GET_BE_WORD
(
ccsf3_4
->
SubstLookupRecord
[
k
].
SequenceIndex
)
*
write_dir
;
TRACE
(
"SUBST: %i -> %i %i
\n
"
,
k
,
SequenceIndex
,
lookupIndex
);
newIndex
=
GSUB_apply_lookup
(
lookup
,
lookupIndex
,
glyphs
,
glyph_index
+
SequenceIndex
,
write_dir
,
glyph_count
);
if
(
newIndex
==
-
1
)
{
ERR
(
"Chain failed to generate a glyph
\n
"
);
continue
;
}
}
return
newIndex
;
}
return
newIndex
;
else
return
GSUB_E_NOGLYPH
;
}
}
return
-
1
;
...
...
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