Commit 3a54b341 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dpnet: Don't assign a COM object to the 3rd param of QueryInterface.

parent 21c4a254
......@@ -56,18 +56,15 @@ static inline IDirectPlay8ClientImpl *impl_from_IDirectPlay8Client(IDirectPlay8C
/* IDirectPlay8Client IUnknown parts follow: */
static HRESULT WINAPI IDirectPlay8ClientImpl_QueryInterface(IDirectPlay8Client *iface, REFIID riid,
void **ppobj)
void **ret_iface)
{
IDirectPlay8ClientImpl *This = impl_from_IDirectPlay8Client(iface);
if (IsEqualGUID(riid, &IID_IUnknown)
|| IsEqualGUID(riid, &IID_IDirectPlay8Client)) {
IUnknown_AddRef(iface);
*ppobj = This;
return DPN_OK;
if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirectPlay8Client)) {
IDirectPlay8Client_AddRef(iface);
*ret_iface = iface;
return S_OK;
}
WARN("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppobj);
WARN("(%p)->(%s,%p): not found\n", iface, debugstr_guid(riid), ret_iface);
return E_NOINTERFACE;
}
......
......@@ -42,18 +42,15 @@ static inline IDirectPlay8LobbiedApplicationImpl *impl_from_IDirectPlay8LobbiedA
/* IDirectPlay8LobbiedApplication IUnknown parts follow: */
static HRESULT WINAPI IDirectPlay8LobbiedApplicationImpl_QueryInterface(IDirectPlay8LobbiedApplication *iface,
REFIID riid, void **ppobj)
REFIID riid, void **ret_iface)
{
IDirectPlay8LobbiedApplicationImpl *This = impl_from_IDirectPlay8LobbiedApplication(iface);
if (IsEqualGUID(riid, &IID_IUnknown)
|| IsEqualGUID(riid, &IID_IDirectPlay8LobbiedApplication)) {
IUnknown_AddRef(iface);
*ppobj = This;
return DPN_OK;
if (IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirectPlay8LobbiedApplication)) {
IDirectPlay8LobbiedApplication_AddRef(iface);
*ret_iface = iface;
return S_OK;
}
WARN("(%p)->(%s,%p),not found\n",This,debugstr_guid(riid),ppobj);
WARN("(%p)->(%s,%p): not found\n", iface, debugstr_guid(riid), ret_iface);
return E_NOINTERFACE;
}
......
......@@ -60,19 +60,16 @@ static inline IDirectPlay8PeerImpl *impl_from_IDirectPlay8Peer(IDirectPlay8Peer
/* IUnknown interface follows */
static HRESULT WINAPI IDirectPlay8PeerImpl_QueryInterface(IDirectPlay8Peer *iface, REFIID riid,
void **ppobj)
void **ret_iface)
{
IDirectPlay8PeerImpl* This = impl_from_IDirectPlay8Peer(iface);
if(IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_IDirectPlay8Peer))
if(IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirectPlay8Peer))
{
IUnknown_AddRef(iface);
*ppobj = This;
return DPN_OK;
IDirectPlay8Peer_AddRef(iface);
*ret_iface = iface;
return S_OK;
}
WARN("(%p)->(%s,%p): not found\n", This, debugstr_guid(riid), ppobj);
WARN("(%p)->(%s,%p): not found\n", iface, debugstr_guid(riid), ret_iface);
return E_NOINTERFACE;
}
......
......@@ -46,19 +46,16 @@ static inline IDirectPlay8ThreadPoolImpl *impl_from_IDirectPlay8ThreadPool(IDire
/* IUnknown interface follows */
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_QueryInterface(IDirectPlay8ThreadPool *iface,
REFIID riid, void **ppobj)
REFIID riid, void **ret_iface)
{
IDirectPlay8ThreadPoolImpl *This = impl_from_IDirectPlay8ThreadPool(iface);
if(IsEqualGUID(riid, &IID_IUnknown) ||
IsEqualGUID(riid, &IID_IDirectPlay8ThreadPool))
if(IsEqualGUID(riid, &IID_IUnknown) || IsEqualGUID(riid, &IID_IDirectPlay8ThreadPool))
{
IUnknown_AddRef(iface);
*ppobj = This;
return DPN_OK;
IDirectPlay8ThreadPool_AddRef(iface);
*ret_iface = iface;
return S_OK;
}
WARN("(%p)->(%s,%p): not found\n", This, debugstr_guid(riid), ppobj);
WARN("(%p)->(%s,%p): not found\n", iface, debugstr_guid(riid), ret_iface);
return E_NOINTERFACE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment