[PATCH 4/5] shell32/autocomplete: Implement ACO_NOPREFIXFILTERING option
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Nov 7 09:14:18 CST 2018
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/shell32/autocomplete.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 8437d2d..22fc62c 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -24,6 +24,7 @@
- implement ACO_SEARCH style
- implement ACO_FILTERPREFIXES style
- implement ACO_RTLREADING style
+ - implement ACO_WORD_FILTER style
*/
#include "config.h"
@@ -406,7 +407,8 @@ static BOOL display_matching_strs(IAutoCompleteImpl *ac, WCHAR *text, UINT len,
UINT cnt, start, end;
if (!str) return (ac->options & ACO_AUTOSUGGEST) ? FALSE : TRUE;
- if (len)
+ /* 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, -1);
if (start == ~0)
@@ -811,6 +813,7 @@ static HRESULT WINAPI IAutoComplete2_fnInit(
if (This->options & ACO_SEARCH) FIXME(" ACO_SEARCH not supported\n");
if (This->options & ACO_FILTERPREFIXES) FIXME(" ACO_FILTERPREFIXES not supported\n");
if (This->options & ACO_RTLREADING) FIXME(" ACO_RTLREADING not supported\n");
+ if (This->options & ACO_WORD_FILTER) FIXME(" ACO_WORD_FILTER not supported\n");
if (!hwndEdit || !punkACL)
return E_INVALIDARG;
--
2.19.1
More information about the wine-devel
mailing list