dplayx: Have the decency to support IUnknown in DirectPlay.

This commit is contained in:
Michael Stefaniuc 2013-03-29 16:34:45 +01:00 committed by Alexandre Julliard
parent 99c726dd86
commit caf9d42e0d

View file

@ -457,7 +457,7 @@ HRESULT DP_CreateInterface
IDirectPlay2Impl *This = *ppvObj;
This->lpVtbl = &directPlay2WVT;
}
else if( IsEqualGUID( &IID_IDirectPlay2A, riid ) )
else if( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDirectPlay2A, riid ) )
{
IDirectPlay2AImpl *This = *ppvObj;
This->lpVtbl = &directPlay2AVT;
@ -541,7 +541,7 @@ static HRESULT WINAPI DP_QueryInterface
IDirectPlay2Impl *This = *ppvObj;
This->lpVtbl = &directPlay2WVT;
}
else if( IsEqualGUID( &IID_IDirectPlay2A, riid ) )
else if( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDirectPlay2A, riid ) )
{
IDirectPlay2AImpl *This = *ppvObj;
This->lpVtbl = &directPlay2AVT;