Commit 84459ba9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

shell32: Avoid FALSE : TRUE conditional expressions.

parent 6f9f57e8
...@@ -508,14 +508,14 @@ static BOOL display_matching_strs(IAutoCompleteImpl *ac, WCHAR *text, UINT len, ...@@ -508,14 +508,14 @@ static BOOL display_matching_strs(IAutoCompleteImpl *ac, WCHAR *text, UINT len,
/* Return FALSE if we need to hide the listbox */ /* Return FALSE if we need to hide the listbox */
WCHAR **str = ac->enum_strs; WCHAR **str = ac->enum_strs;
UINT start, end; 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 */ /* Windows seems to disable autoappend if ACO_NOPREFIXFILTERING is set */
if (!(ac->options & ACO_NOPREFIXFILTERING) && len) if (!(ac->options & ACO_NOPREFIXFILTERING) && len)
{ {
start = find_matching_enum_str(ac, 0, text, len, pfx_filter, -1); start = find_matching_enum_str(ac, 0, text, len, pfx_filter, -1);
if (start == ~0) if (start == ~0)
return (ac->options & ACO_AUTOSUGGEST) ? FALSE : TRUE; return !(ac->options & ACO_AUTOSUGGEST);
if (flag == autoappend_flag_yes) if (flag == autoappend_flag_yes)
autoappend_str(ac, text, len, filter_str_prefix(str[start], pfx_filter), hwnd); autoappend_str(ac, text, len, filter_str_prefix(str[start], pfx_filter), hwnd);
......
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