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
4490f8a2
Commit
4490f8a2
authored
May 25, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix array indexing when merging features.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2a2607e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
shape.c
dlls/dwrite/shape.c
+2
-2
No files found.
dlls/dwrite/shape.c
View file @
4490f8a2
...
...
@@ -231,7 +231,7 @@ static int features_sorting_compare(const void *a, const void *b)
static
void
shape_merge_features
(
struct
scriptshaping_context
*
context
,
struct
shaping_features
*
features
)
{
const
DWRITE_TYPOGRAPHIC_FEATURES
**
user_features
=
context
->
user_features
.
features
;
unsigned
int
j
=
0
,
i
;
unsigned
int
i
,
j
;
/* For now only consider global, enabled user features. */
if
(
user_features
&&
context
->
user_features
.
range_lengths
)
...
...
@@ -250,7 +250,7 @@ static void shape_merge_features(struct scriptshaping_context *context, struct s
/* Sort and merge duplicates. */
qsort
(
features
->
features
,
features
->
count
,
sizeof
(
*
features
->
features
),
features_sorting_compare
);
for
(
i
=
1
;
i
<
features
->
count
;
++
i
)
for
(
i
=
1
,
j
=
0
;
i
<
features
->
count
;
++
i
)
{
if
(
features
->
features
[
i
].
tag
!=
features
->
features
[
j
].
tag
)
features
->
features
[
++
j
]
=
features
->
features
[
i
];
...
...
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