[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH] shell32: Avoid FALSE : TRUE conditional expressions
From: Michael Stefaniuc <mstefani () winehq ! org>
Date: 2019-01-31 19:56:28
Message-ID: 20190131195628.8805-2-mstefani () winehq ! org
[Download RAW message or body]
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
---
dlls/shell32/autocomplete.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 90036e73fb..36b0c5d7bc 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -508,14 +508,14 @@ static BOOL display_matching_strs(IAutoCompleteImpl *ac, WCHAR *text, UINT len,
/* Return FALSE if we need to hide the listbox */
WCHAR **str = ac->enum_strs;
UINT start, end;
- if (!str) return (ac->options & ACO_AUTOSUGGEST) ? FALSE : TRUE;
+ if (!str) return !(ac->options & ACO_AUTOSUGGEST);
/* Windows seems to disable autoappend if ACO_NOPREFIXFILTERING is set */
if (!(ac->options & ACO_NOPREFIXFILTERING) && len)
{
start = find_matching_enum_str(ac, 0, text, len, pfx_filter, -1);
if (start == ~0)
- return (ac->options & ACO_AUTOSUGGEST) ? FALSE : TRUE;
+ return !(ac->options & ACO_AUTOSUGGEST);
if (flag == autoappend_flag_yes)
autoappend_str(ac, text, len, filter_str_prefix(str[start], pfx_filter), hwnd);
--
2.20.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic