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
9e5f9209
Commit
9e5f9209
authored
Sep 13, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Avoid casts from COM object to interface.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9679755a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
vartest.c
dlls/oleaut32/tests/vartest.c
+3
-2
No files found.
dlls/oleaut32/tests/vartest.c
View file @
9e5f9209
...
...
@@ -723,12 +723,13 @@ static void test_VariantClear(void)
/* DISPATCH */
V_VT
(
&
v
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
v
)
=
(
IDispatch
*
)
&
test_myVariantClearImpl
;
V_DISPATCH
(
&
v
)
=
(
IDispatch
*
)
&
test_myVariantClearImpl
.
IUnknown_iface
;
test_myVariantClearImpl
.
events
=
0
;
hres
=
VariantClear
(
&
v
);
ok
(
hres
==
S_OK
,
"ret %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
0
,
"vt %04x
\n
"
,
V_VT
(
&
v
));
ok
(
V_DISPATCH
(
&
v
)
==
(
IDispatch
*
)
&
test_myVariantClearImpl
,
"dispatch %p
\n
"
,
V_DISPATCH
(
&
v
));
ok
(
V_DISPATCH
(
&
v
)
==
(
IDispatch
*
)
&
test_myVariantClearImpl
.
IUnknown_iface
,
"dispatch %p
\n
"
,
V_DISPATCH
(
&
v
));
/* Check that Release got called, but nothing else */
ok
(
test_myVariantClearImpl
.
events
==
0x4
,
"Unexpected call. events %08x
\n
"
,
test_myVariantClearImpl
.
events
);
...
...
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