dplayx: Get rid of the IDirectPlayXImpl to IDirectPlayImpl casts.
This commit is contained in:
parent
12a26e1d01
commit
2a079ce62a
@ -1482,7 +1482,7 @@ static HRESULT DP_IF_DestroyGroup
|
|||||||
return DPERR_INVALIDPLAYER; /* yes player */
|
return DPERR_INVALIDPLAYER; /* yes player */
|
||||||
}
|
}
|
||||||
|
|
||||||
context.This = (IDirectPlay3Impl*)This;
|
context.This = This;
|
||||||
context.bAnsi = bAnsi;
|
context.bAnsi = bAnsi;
|
||||||
context.idGroup = idGroup;
|
context.idGroup = idGroup;
|
||||||
|
|
||||||
@ -2919,15 +2919,10 @@ static HRESULT DP_IF_CreateGroupInGroup
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Verify that the specified parent is valid */
|
/* Verify that the specified parent is valid */
|
||||||
if( ( lpGParentData = DP_FindAnyGroup( (IDirectPlay2AImpl*)This,
|
if( ( lpGParentData = DP_FindAnyGroup(This, idParentGroup ) ) == NULL )
|
||||||
idParentGroup ) ) == NULL
|
|
||||||
)
|
|
||||||
{
|
|
||||||
return DPERR_INVALIDGROUP;
|
return DPERR_INVALIDGROUP;
|
||||||
}
|
|
||||||
|
|
||||||
lpGData = DP_CreateGroup( (IDirectPlay2AImpl*)This, lpidGroup, lpGroupName,
|
lpGData = DP_CreateGroup(This, lpidGroup, lpGroupName, dwFlags, idParentGroup, bAnsi );
|
||||||
dwFlags, idParentGroup, bAnsi );
|
|
||||||
|
|
||||||
if( lpGData == NULL )
|
if( lpGData == NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user