Commit b669664c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dplayx: Have the decency to support IUnknown in DirectPlayLobby.

parent dffc8fc5
......@@ -196,7 +196,7 @@ HRESULT DPL_CreateInterface
if ( !This )
return DPERR_OUTOFMEMORY;
if( IsEqualGUID( &IID_IDirectPlayLobby, riid ) )
if ( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDirectPlayLobby, riid ) )
This->lpVtbl = &directPlayLobbyWVT;
else if( IsEqualGUID( &IID_IDirectPlayLobbyA, riid ) )
This->lpVtbl = &directPlayLobbyAVT;
......@@ -255,7 +255,7 @@ static HRESULT WINAPI DPL_QueryInterface
CopyMemory( *ppvObj, This, sizeof( *This ) );
(*(IDirectPlayLobbyAImpl**)ppvObj)->ulInterfaceRef = 0;
if( IsEqualGUID( &IID_IDirectPlayLobby, riid ) )
if( IsEqualGUID( &IID_IUnknown, riid ) || IsEqualGUID( &IID_IDirectPlayLobby, riid ) )
{
IDirectPlayLobbyWImpl *This = *ppvObj;
This->lpVtbl = &directPlayLobbyWVT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment