Commit 0435395c authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

dplayx: Fix incorrect check in DirectPlayLobbyAImpl_EnumLocalApplications and…

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.
parent 488ac40f
...@@ -736,7 +736,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes ...@@ -736,7 +736,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
if( !lpEnumAddressTypeCallback || !*lpEnumAddressTypeCallback ) if( !lpEnumAddressTypeCallback )
{ {
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
...@@ -892,7 +892,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications ...@@ -892,7 +892,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
if( !lpEnumLocalAppCallback || !*lpEnumLocalAppCallback ) if( !lpEnumLocalAppCallback )
{ {
return DPERR_INVALIDPARAMS; return DPERR_INVALIDPARAMS;
} }
......
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