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
c1e68642
Commit
c1e68642
authored
May 01, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
May 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Fix a few failing tests and make them pass on Wine.
parent
20ae9be5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
usp10.c
dlls/usp10/tests/usp10.c
+5
-3
usp10.c
dlls/usp10/usp10.c
+1
-1
No files found.
dlls/usp10/tests/usp10.c
View file @
c1e68642
...
...
@@ -498,7 +498,7 @@ static void test_ScriptTextOut(HDC hdc)
hr
=
ScriptTextOut
(
hdc
,
&
psc
,
0
,
0
,
0
,
NULL
,
&
pItem
[
0
].
a
,
NULL
,
0
,
pwOutGlyphs1
,
pcGlyphs
,
piAdvance
,
NULL
,
pGoffset
);
ok
(
hr
==
0
,
"ScriptTextOut should return 0 not (%08x)
\n
"
,
hr
);
ok
(
psc
!=
NULL
,
"psc should not be null and have SCRIPT_CACHE buffer address
\n
"
);
ok
(
psc
==
NULL
,
"psc should be null
\n
"
);
/* Test Rect Rgn is acceptable */
rect
.
top
=
10
;
...
...
@@ -508,7 +508,7 @@ static void test_ScriptTextOut(HDC hdc)
hr
=
ScriptTextOut
(
hdc
,
&
psc
,
0
,
0
,
0
,
&
rect
,
&
pItem
[
0
].
a
,
NULL
,
0
,
pwOutGlyphs1
,
pcGlyphs
,
piAdvance
,
NULL
,
pGoffset
);
ok
(
hr
==
0
,
"ScriptTextOut should return 0 not (%08x)
\n
"
,
hr
);
ok
(
psc
!=
NULL
,
"psc should not be null and have SCRIPT_CACHE buffer address
\n
"
);
ok
(
psc
==
NULL
,
"psc should be null
\n
"
);
iCP
=
1
;
hr
=
ScriptCPtoX
(
iCP
,
fTrailing
,
cChars
,
pcGlyphs
,
(
const
WORD
*
)
&
pwLogClust
,
...
...
@@ -953,7 +953,9 @@ static void test_ScriptStringXtoCP_CPtoX(HDC hdc)
/*
* ScriptStringCPtoX should free ssa, hence ScriptStringFree should fail
*/
ok
(
hr
==
E_INVALIDARG
,
"ScriptStringFree should return E_INVALIDARG not %08x
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
||
hr
==
E_FAIL
,
/* win2k3 */
"ScriptStringFree should return E_INVALIDARG or E_FAIL not %08x
\n
"
,
hr
);
}
}
...
...
dlls/usp10/usp10.c
View file @
c1e68642
...
...
@@ -1413,7 +1413,7 @@ HRESULT WINAPI ScriptTextOut(const HDC hdc, SCRIPT_CACHE *psc, int x, int y, UIN
hdc
,
psc
,
x
,
y
,
fuOptions
,
lprc
,
psa
,
pwcReserved
,
iReserved
,
pwGlyphs
,
cGlyphs
,
piAdvance
,
piJustify
,
pGoffset
);
if
(
!
hdc
&&
psc
&&
!*
psc
)
return
E_INVALIDARG
;
if
(
!
hdc
||
!
psc
)
return
E_INVALIDARG
;
if
(
!
piAdvance
||
!
psa
||
!
pwGlyphs
)
return
E_INVALIDARG
;
fuOptions
&=
ETO_CLIPPED
+
ETO_OPAQUE
;
...
...
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