Commit 17345777 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Fix dead condition (Coverity).

parent 190f6ab1
...@@ -543,7 +543,7 @@ static BOOL textsetptrT(LPWSTR *dest, LPCWSTR src, BOOL isW) ...@@ -543,7 +543,7 @@ static BOOL textsetptrT(LPWSTR *dest, LPCWSTR src, BOOL isW)
static inline int textcmpWT(LPCWSTR aw, LPCWSTR bt, BOOL isW) static inline int textcmpWT(LPCWSTR aw, LPCWSTR bt, BOOL isW)
{ {
if (!aw) return bt ? -1 : 0; if (!aw) return bt ? -1 : 0;
if (!bt) return aw ? 1 : 0; if (!bt) return 1;
if (aw == LPSTR_TEXTCALLBACKW) if (aw == LPSTR_TEXTCALLBACKW)
return bt == LPSTR_TEXTCALLBACKW ? 1 : -1; return bt == LPSTR_TEXTCALLBACKW ? 1 : -1;
if (bt != LPSTR_TEXTCALLBACKW) if (bt != LPSTR_TEXTCALLBACKW)
......
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