From 488ac40fa8e8a22206d1fefd157fbd04fadae0ac Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 21 Feb 2008 16:44:29 +0000 Subject: [PATCH] dplayx: Fix incorrect check in DirectPlay3AImpl_EnumConnections. Dereferencing a function pointer and checking it against NULL doesn't make any sense, so remove the check. --- dlls/dplayx/dplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index e3c3562ff62..04044a7aae5 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -3669,7 +3669,7 @@ static HRESULT WINAPI DirectPlay3AImpl_EnumConnections return DPERR_INVALIDFLAGS; } - if( !lpEnumCallback || !*lpEnumCallback ) + if( !lpEnumCallback ) { return DPERR_INVALIDPARAMS; } -- 2.11.4.GIT