mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 12:23:39 +00:00
dpnet: Don't assign a COM object to the 3rd param of QueryInterface.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
21c4a25437
commit
3a54b3413d
|
@ -56,18 +56,15 @@ static inline IDirectPlay8ClientImpl *impl_from_IDirectPlay8Client(IDirectPlay8C
|
||||||
|
|
||||||
/* IDirectPlay8Client IUnknown parts follow: */
|
/* IDirectPlay8Client IUnknown parts follow: */
|
||||||
static HRESULT WINAPI IDirectPlay8ClientImpl_QueryInterface(IDirectPlay8Client *iface, REFIID riid,
|
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)) {
|
||||||
|
IDirectPlay8Client_AddRef(iface);
|
||||||
if (IsEqualGUID(riid, &IID_IUnknown)
|
*ret_iface = iface;
|
||||||
|| IsEqualGUID(riid, &IID_IDirectPlay8Client)) {
|
return S_OK;
|
||||||
IUnknown_AddRef(iface);
|
|
||||||
*ppobj = This;
|
|
||||||
return DPN_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;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,18 +42,15 @@ static inline IDirectPlay8LobbiedApplicationImpl *impl_from_IDirectPlay8LobbiedA
|
||||||
|
|
||||||
/* IDirectPlay8LobbiedApplication IUnknown parts follow: */
|
/* IDirectPlay8LobbiedApplication IUnknown parts follow: */
|
||||||
static HRESULT WINAPI IDirectPlay8LobbiedApplicationImpl_QueryInterface(IDirectPlay8LobbiedApplication *iface,
|
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)) {
|
||||||
|
IDirectPlay8LobbiedApplication_AddRef(iface);
|
||||||
if (IsEqualGUID(riid, &IID_IUnknown)
|
*ret_iface = iface;
|
||||||
|| IsEqualGUID(riid, &IID_IDirectPlay8LobbiedApplication)) {
|
return S_OK;
|
||||||
IUnknown_AddRef(iface);
|
|
||||||
*ppobj = This;
|
|
||||||
return DPN_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;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,19 +60,16 @@ static inline IDirectPlay8PeerImpl *impl_from_IDirectPlay8Peer(IDirectPlay8Peer
|
||||||
|
|
||||||
/* IUnknown interface follows */
|
/* IUnknown interface follows */
|
||||||
static HRESULT WINAPI IDirectPlay8PeerImpl_QueryInterface(IDirectPlay8Peer *iface, REFIID riid,
|
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);
|
IDirectPlay8Peer_AddRef(iface);
|
||||||
*ppobj = This;
|
*ret_iface = iface;
|
||||||
return DPN_OK;
|
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;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,19 +46,16 @@ static inline IDirectPlay8ThreadPoolImpl *impl_from_IDirectPlay8ThreadPool(IDire
|
||||||
|
|
||||||
/* IUnknown interface follows */
|
/* IUnknown interface follows */
|
||||||
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_QueryInterface(IDirectPlay8ThreadPool *iface,
|
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);
|
IDirectPlay8ThreadPool_AddRef(iface);
|
||||||
*ppobj = This;
|
*ret_iface = iface;
|
||||||
return DPN_OK;
|
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;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue