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
4ef6a968
Commit
4ef6a968
authored
Feb 27, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Feb 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Avoid signed-unsigned integer comparisons.
parent
a5c86d35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
bidi.c
dlls/usp10/bidi.c
+2
-1
usp10.c
dlls/usp10/usp10.c
+13
-11
No files found.
dlls/usp10/bidi.c
View file @
4ef6a968
...
...
@@ -749,7 +749,8 @@ BOOL BIDI_DetermineLevels(
)
{
WORD
*
chartype
;
unsigned
baselevel
=
0
,
j
;
unsigned
baselevel
=
0
;
INT
j
;
TRACE
(
"%s, %d
\n
"
,
debugstr_wn
(
lpString
,
uCount
),
uCount
);
chartype
=
HeapAlloc
(
GetProcessHeap
(),
0
,
uCount
*
sizeof
(
WORD
));
...
...
dlls/usp10/usp10.c
View file @
4ef6a968
...
...
@@ -1017,13 +1017,14 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
if
(
psc
&&
*
psc
)
{
unsigned
int
i
;
INT
n
;
for
(
i
=
0
;
i
<
GLYPH_MAX
/
GLYPH_BLOCK_SIZE
;
i
++
)
{
heap_free
(((
ScriptCache
*
)
*
psc
)
->
widths
[
i
]);
}
for
(
i
=
0
;
i
<
0x10
;
i
++
)
{
int
j
;
unsigned
int
j
;
if
(((
ScriptCache
*
)
*
psc
)
->
page
[
i
])
for
(
j
=
0
;
j
<
GLYPH_MAX
/
GLYPH_BLOCK_SIZE
;
j
++
)
heap_free
(((
ScriptCache
*
)
*
psc
)
->
page
[
i
]
->
glyphs
[
j
]);
...
...
@@ -1033,20 +1034,20 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
heap_free
(((
ScriptCache
*
)
*
psc
)
->
GDEF_Table
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
CMAP_Table
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
GPOS_Table
);
for
(
i
=
0
;
i
<
((
ScriptCache
*
)
*
psc
)
->
script_count
;
i
++
)
for
(
n
=
0
;
n
<
((
ScriptCache
*
)
*
psc
)
->
script_count
;
n
++
)
{
int
j
;
for
(
j
=
0
;
j
<
((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
language_count
;
j
++
)
for
(
j
=
0
;
j
<
((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
language_count
;
j
++
)
{
int
k
;
for
(
k
=
0
;
k
<
((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
languages
[
j
].
feature_count
;
k
++
)
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
languages
[
j
].
features
[
k
].
lookups
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
languages
[
j
].
features
);
for
(
k
=
0
;
k
<
((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
languages
[
j
].
feature_count
;
k
++
)
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
languages
[
j
].
features
[
k
].
lookups
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
languages
[
j
].
features
);
}
for
(
j
=
0
;
j
<
((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
default_language
.
feature_count
;
j
++
)
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
default_language
.
features
[
j
].
lookups
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
default_language
.
features
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
i
].
languages
);
for
(
j
=
0
;
j
<
((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
default_language
.
feature_count
;
j
++
)
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
default_language
.
features
[
j
].
lookups
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
default_language
.
features
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
[
n
].
languages
);
}
heap_free
(((
ScriptCache
*
)
*
psc
)
->
scripts
);
heap_free
(((
ScriptCache
*
)
*
psc
)
->
otm
);
...
...
@@ -2843,7 +2844,8 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc,
SCRIPT_GLYPHPROP
*
pOutGlyphProps
,
int
*
pcGlyphs
)
{
HRESULT
hr
;
unsigned
int
i
,
g
;
int
i
;
unsigned
int
g
;
BOOL
rtl
;
int
cluster
;
...
...
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