From 1734577731233aa7d98abf611aac379449f52113 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 25 Feb 2011 11:55:50 +0300 Subject: [PATCH] comctl32/listview: Fix dead condition (Coverity). --- dlls/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 01c58644b52..60178b3d3d1 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -543,7 +543,7 @@ static BOOL textsetptrT(LPWSTR *dest, LPCWSTR src, BOOL isW) static inline int textcmpWT(LPCWSTR aw, LPCWSTR bt, BOOL isW) { if (!aw) return bt ? -1 : 0; - if (!bt) return aw ? 1 : 0; + if (!bt) return 1; if (aw == LPSTR_TEXTCALLBACKW) return bt == LPSTR_TEXTCALLBACKW ? 1 : -1; if (bt != LPSTR_TEXTCALLBACKW)