Michael Stefaniuc : shell32/tests: Avoid casts from a COM object to an iface.
Alexandre Julliard
julliard at winehq.org
Sun Jul 3 12:18:28 CDT 2016
Module: wine
Branch: master
Commit: df63e1a169733431d7e83bebdc5f47e36007e3f3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=df63e1a169733431d7e83bebdc5f47e36007e3f3
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Jun 29 09:53:10 2016 +0200
shell32/tests: Avoid casts from a COM object to an iface.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shell32/tests/shlfolder.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/tests/shlfolder.c b/dlls/shell32/tests/shlfolder.c
index e80e8a4..1591b7b 100644
--- a/dlls/shell32/tests/shlfolder.c
+++ b/dlls/shell32/tests/shlfolder.c
@@ -3088,7 +3088,7 @@ static void test_SHGetIDListFromObject(void)
punkimpl->ifaces = ifaces;
punkimpl->unknown = 0;
- hres = pSHGetIDListFromObject((IUnknown*)punkimpl, &pidl);
+ hres = pSHGetIDListFromObject(&punkimpl->IUnknown_iface, &pidl);
ok(hres == E_NOINTERFACE, "Got %x\n", hres);
ok(ifaces[0].count, "interface not requested.\n");
ok(ifaces[1].count, "interface not requested.\n");
@@ -3260,7 +3260,7 @@ static void test_SHGetItemFromObject(void)
punkimpl->unknown = 0;
/* The same as SHGetIDListFromObject */
- hres = pSHGetIDListFromObject((IUnknown*)punkimpl, &pidl);
+ hres = pSHGetIDListFromObject(&punkimpl->IUnknown_iface, &pidl);
ok(hres == E_NOINTERFACE, "Got %x\n", hres);
ok(ifaces[0].count, "interface not requested.\n");
ok(ifaces[1].count, "interface not requested.\n");
More information about the wine-cvs
mailing list