Commit ebe75cb6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

usp10: Simplify the "sr_2" assignments in GSUB_apply_ContextSubst().

parent 6c13170b
...@@ -1121,8 +1121,7 @@ static INT GSUB_apply_ContextSubst(const OT_LookupList* lookup, const OT_LookupT ...@@ -1121,8 +1121,7 @@ static INT GSUB_apply_ContextSubst(const OT_LookupList* lookup, const OT_LookupT
} }
TRACE(" Rule matches\n"); TRACE(" Rule matches\n");
sr_2 = (const GSUB_SubRule_2*)((const BYTE*)sr+ sr_2 = (const GSUB_SubRule_2 *)&sr->Input[g_count - 1];
FIELD_OFFSET(GSUB_SubRule_1, Input[g_count-1]));
for (l = 0; l < GET_BE_WORD(sr->SubstCount); l++) for (l = 0; l < GET_BE_WORD(sr->SubstCount); l++)
{ {
...@@ -1201,8 +1200,7 @@ static INT GSUB_apply_ContextSubst(const OT_LookupList* lookup, const OT_LookupT ...@@ -1201,8 +1200,7 @@ static INT GSUB_apply_ContextSubst(const OT_LookupList* lookup, const OT_LookupT
} }
TRACE(" Rule matches\n"); TRACE(" Rule matches\n");
sr_2 = (const GSUB_SubClassRule_2*)((const BYTE*)sr+ sr_2 = (const GSUB_SubClassRule_2 *)&sr->Class[g_count - 1];
FIELD_OFFSET(GSUB_SubClassRule_1, Class[g_count-1]));
for (l = 0; l < GET_BE_WORD(sr->SubstCount); l++) for (l = 0; l < GET_BE_WORD(sr->SubstCount); l++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment