From b669664c4cd193c36db35ff789a2eb6b374eb136 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Tue, 9 Apr 2013 22:34:49 +0200 Subject: [PATCH] dplayx: Have the decency to support IUnknown in DirectPlayLobby. --- dlls/dplayx/dplobby.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/dplayx/dplobby.c b/dlls/dplayx/dplobby.c index 74b5c080e6d..9e53a302a76 100644 --- a/dlls/dplayx/dplobby.c +++ b/dlls/dplayx/dplobby.c @@ -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;