[PATCH] shell32: Simplify conditional expression (PVS-Studio)

Nikolay Sivov nsivov at codeweavers.com
Thu Oct 15 04:37:10 CDT 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/shell32/debughlp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/shell32/debughlp.c b/dlls/shell32/debughlp.c
index 3d417f8..a7ae616 100644
--- a/dlls/shell32/debughlp.c
+++ b/dlls/shell32/debughlp.c
@@ -53,7 +53,7 @@ LPCITEMIDLIST _dbg_ILGetNext(LPCITEMIDLIST pidl)
 static
 BOOL _dbg_ILIsDesktop(LPCITEMIDLIST pidl)
 {
-	return ( !pidl || (pidl && pidl->mkid.cb == 0x00) );
+	return ( !pidl || pidl->mkid.cb == 0x00 );
 }
 
 static
-- 
2.6.1




More information about the wine-patches mailing list