dplayx: Finish the COM cleanup for IDPLobbySP.
This commit is contained in:
parent
02ce71edee
commit
56e1e6aa7f
|
@ -28,14 +28,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(dplay);
|
||||||
|
|
||||||
typedef struct IDPLobbySPImpl
|
typedef struct IDPLobbySPImpl
|
||||||
{
|
{
|
||||||
const IDPLobbySPVtbl *lpVtbl;
|
IDPLobbySP IDPLobbySP_iface;
|
||||||
LONG ref;
|
LONG ref;
|
||||||
IDirectPlayImpl *dplay;
|
IDirectPlayImpl *dplay;
|
||||||
} IDPLobbySPImpl;
|
} IDPLobbySPImpl;
|
||||||
|
|
||||||
static inline IDPLobbySPImpl *impl_from_IDPLobbySP(IDPLobbySP *iface)
|
static inline IDPLobbySPImpl *impl_from_IDPLobbySP(IDPLobbySP *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD( iface, IDPLobbySPImpl, lpVtbl );
|
return CONTAINING_RECORD(iface, IDPLobbySPImpl, IDPLobbySP_iface);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Forward declaration of virtual tables */
|
/* Forward declaration of virtual tables */
|
||||||
|
@ -56,7 +56,7 @@ HRESULT DPLSP_CreateInterface( REFIID riid, void **ppvObj, IDirectPlayImpl *dp )
|
||||||
if( IsEqualGUID( &IID_IDPLobbySP, riid ) )
|
if( IsEqualGUID( &IID_IDPLobbySP, riid ) )
|
||||||
{
|
{
|
||||||
IDPLobbySPImpl *This = *ppvObj;
|
IDPLobbySPImpl *This = *ppvObj;
|
||||||
This->lpVtbl = &dpLobbySPVT;
|
This->IDPLobbySP_iface.lpVtbl = &dpLobbySPVT;
|
||||||
This->dplay = dp;
|
This->dplay = dp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue