=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: shell32/autocomplete: Implement ACO_NOPREFIXFILTERING option.

Alexandre Julliard julliard at winehq.org
Thu Nov 8 14:47:25 CST 2018


Module: wine
Branch: master
Commit: 1649680bf910c2c042c0070893fb23e8112ad3c2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=1649680bf910c2c042c0070893fb23e8112ad3c2

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Wed Nov  7 17:14:18 2018 +0200

shell32/autocomplete: Implement ACO_NOPREFIXFILTERING option.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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;




More information about the wine-cvs mailing list