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
9a59d81f
Commit
9a59d81f
authored
Feb 14, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Correct error with ScriptLayout log2vis.
Issue found and test written by Huw Davies.
parent
851866e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
bidi.c
dlls/usp10/bidi.c
+4
-2
usp10.c
dlls/usp10/tests/usp10.c
+15
-0
No files found.
dlls/usp10/bidi.c
View file @
9a59d81f
...
...
@@ -872,11 +872,13 @@ int BIDI_ReorderL2vLevel(int level, int *pIndexs, const BYTE* plevel, int cch, B
reverse
(
pIndexs
,
ich
);
}
if
(
newlevel
>
1
)
if
(
newlevel
>
=
0
)
{
ich
=
0
;
for
(;
ich
<
cch
;
ich
++
)
if
(
plevel
[
ich
]
>
level
)
if
(
plevel
[
ich
]
<
level
)
break
;
else
if
(
plevel
[
ich
]
>
level
)
ich
+=
BIDI_ReorderL2vLevel
(
level
+
1
,
pIndexs
+
ich
,
plevel
+
ich
,
cch
-
ich
,
fReverse
)
-
1
;
}
...
...
dlls/usp10/tests/usp10.c
View file @
9a59d81f
...
...
@@ -2786,6 +2786,11 @@ static void test_ScriptLayout(void)
{
0
,
0
,
1
,
1
,
2
,
2
,
1
,
1
,
0
,
1
},
{
1
,
0
,
1
,
2
,
2
,
1
,
2
,
1
,
0
,
1
},
{
1
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
2
,
2
,
2
,
0
,
0
,
0
,
0
,
0
,
0
,
0
},
{
2
,
2
,
2
,
4
,
4
,
4
,
1
,
1
,
0
,
0
},
{
1
,
2
,
3
,
0
,
3
,
2
,
1
,
0
,
0
,
0
}
};
static
const
int
expect_l2v
[][
10
]
=
{
...
...
@@ -2802,6 +2807,11 @@ static void test_ScriptLayout(void)
{
0
,
1
,
7
,
6
,
4
,
5
,
3
,
2
,
8
,
9
},
/**/
{
0
,
1
,
7
,
5
,
6
,
4
,
3
,
2
,
8
,
9
},
{
1
,
0
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
},
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
},
{
2
,
3
,
4
,
5
,
6
,
7
,
1
,
0
,
8
,
9
},
{
2
,
0
,
1
,
3
,
5
,
6
,
4
,
7
,
8
,
9
}
};
static
const
int
expect_v2l
[][
10
]
=
{
...
...
@@ -2818,6 +2828,11 @@ static void test_ScriptLayout(void)
{
0
,
1
,
7
,
6
,
4
,
5
,
3
,
2
,
8
,
9
},
{
0
,
1
,
7
,
6
,
5
,
3
,
4
,
2
,
8
,
9
},
{
1
,
0
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
},
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
},
{
7
,
6
,
0
,
1
,
2
,
3
,
4
,
5
,
8
,
9
},
{
1
,
2
,
0
,
3
,
6
,
4
,
5
,
7
,
8
,
9
}
};
int
i
,
j
,
vistolog
[
sizeof
(
levels
[
0
])],
logtovis
[
sizeof
(
levels
[
0
])];
...
...
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