mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dplayx: Have the decency to support IUnknown in DirectPlay.
This commit is contained in:
parent
99c726dd86
commit
caf9d42e0d
1 changed files with 2 additions and 2 deletions
|
@ -457,7 +457,7 @@ HRESULT DP_CreateInterface
|
||||||
IDirectPlay2Impl *This = *ppvObj;
|
IDirectPlay2Impl *This = *ppvObj;
|
||||||
This->lpVtbl = &directPlay2WVT;
|
This->lpVtbl = &directPlay2WVT;
|
||||||
}
|
}
|
||||||
else if( IsEqualGUID( &IID_IDirectPlay2A, riid ) )
|
else if( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDirectPlay2A, riid ) )
|
||||||
{
|
{
|
||||||
IDirectPlay2AImpl *This = *ppvObj;
|
IDirectPlay2AImpl *This = *ppvObj;
|
||||||
This->lpVtbl = &directPlay2AVT;
|
This->lpVtbl = &directPlay2AVT;
|
||||||
|
@ -541,7 +541,7 @@ static HRESULT WINAPI DP_QueryInterface
|
||||||
IDirectPlay2Impl *This = *ppvObj;
|
IDirectPlay2Impl *This = *ppvObj;
|
||||||
This->lpVtbl = &directPlay2WVT;
|
This->lpVtbl = &directPlay2WVT;
|
||||||
}
|
}
|
||||||
else if( IsEqualGUID( &IID_IDirectPlay2A, riid ) )
|
else if( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDirectPlay2A, riid ) )
|
||||||
{
|
{
|
||||||
IDirectPlay2AImpl *This = *ppvObj;
|
IDirectPlay2AImpl *This = *ppvObj;
|
||||||
This->lpVtbl = &directPlay2AVT;
|
This->lpVtbl = &directPlay2AVT;
|
||||||
|
|
Loading…
Reference in a new issue