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:
parent
488ac40fa8
commit
0435395ccc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue