shell32/tests: Avoid casts from a COM object to an iface.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Michael Stefaniuc 2016-06-29 09:53:10 +02:00 committed by Alexandre Julliard
parent 123dd73591
commit df63e1a169
1 changed files with 2 additions and 2 deletions

View File

@ -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");