dplayx: Fix incorrect check in DirectPlayLobbyAImpl_EnumLocalApplications and IDirectPlayLobbyAImpl_EnumAddressTypes.

Dereferencing a function pointer and checking it against NULL doesn't 
make any sense, so remove the checks.
This commit is contained in:
Rob Shearman 2008-02-21 16:44:34 +00:00 committed by Alexandre Julliard
parent 488ac40fa8
commit 0435395ccc
1 changed files with 2 additions and 2 deletions

View File

@ -736,7 +736,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes
return DPERR_INVALIDPARAMS;
}
if( !lpEnumAddressTypeCallback || !*lpEnumAddressTypeCallback )
if( !lpEnumAddressTypeCallback )
{
return DPERR_INVALIDPARAMS;
}
@ -892,7 +892,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications
return DPERR_INVALIDPARAMS;
}
if( !lpEnumLocalAppCallback || !*lpEnumLocalAppCallback )
if( !lpEnumLocalAppCallback )
{
return DPERR_INVALIDPARAMS;
}