From 69562b0edf9ef8391731120c44c4bd005a683470 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 27 Oct 2005 12:08:58 +0000 Subject: [PATCH] There is no need to call IUnknown_QueryInterface since getting the correct object is handled by the proxy manager. --- dlls/oleaut32/tmarshal.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 89f513e38e1..75845851ca9 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -1696,18 +1696,13 @@ TMStubImpl_Invoke( } } - hres = IUnknown_QueryInterface(This->pUnk,&(This->iid),(LPVOID*)&(args[0])); - if (hres) { - ERR("Does not support iface %s, returning %lx\n",debugstr_guid(&(This->iid)), hres); - return hres; - } + args[0] = (DWORD)This->pUnk; res = _invoke( (*((FARPROC**)args[0]))[fdesc->oVft/4], fdesc->callconv, (xargs-args), args ); - IUnknown_Release((LPUNKNOWN)args[0]); buf.curoff = 0; xargs = args+1;