Nikolay Sivov : comctl32/listview: Fix dead condition (Coverity).
Module: wine Branch: master Commit: 1734577731233aa7d98abf611aac379449f52113 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1734577731233aa7d98abf611a... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri Feb 25 11:55:50 2011 +0300 comctl32/listview: Fix dead condition (Coverity). --- dlls/comctl32/listview.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 01c5864..60178b3 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)
participants (1)
-
Alexandre Julliard