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
9cede2f0
Commit
9cede2f0
authored
Oct 20, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10/tests: Use BOOL variable for BOOL retval (PVS-Studio).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b5699c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
usp10.c
dlls/usp10/tests/usp10.c
+5
-3
No files found.
dlls/usp10/tests/usp10.c
View file @
9cede2f0
...
...
@@ -2267,15 +2267,17 @@ static void test_ScriptTextOut2(HDC hdc)
ok
(
hr
==
S_OK
,
"ScriptShape should return S_OK not (%08x)
\n
"
,
hr
);
ok
(
psc
!=
NULL
,
"psc should not be null and have SCRIPT_CACHE buffer address
\n
"
);
ok
(
pcGlyphs
==
cChars
,
"Chars in (%d) should equal Glyphs out (%d)
\n
"
,
cChars
,
pcGlyphs
);
if
(
hr
==
0
)
{
if
(
hr
==
S_OK
)
{
BOOL
ret
;
/* Note hdc is needed as glyph info is not yet in psc */
hr
=
ScriptPlace
(
hdc2
,
&
psc
,
pwOutGlyphs1
,
pcGlyphs
,
psva
,
&
pItem
[
0
].
a
,
piAdvance
,
pGoffset
,
pABC
);
ok
(
hr
==
S_OK
,
"Should return S_OK not (%08x)
\n
"
,
hr
);
/* key part!!! cached dc is being deleted */
hr
=
DeleteDC
(
hdc2
);
ok
(
hr
==
1
,
"DeleteDC should return 1 not %08x
\n
"
,
hr
);
ret
=
DeleteDC
(
hdc2
);
ok
(
ret
,
"DeleteDC should return 1 not %d
\n
"
,
ret
);
/* At this point the cached hdc (hdc2) has been destroyed,
* however, we are passing in a *real* hdc (the original hdc).
...
...
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