=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: shell32/autocomplete: Reset the enumerator when the text is empty even when auto-suggest is disabled.

Alexandre Julliard julliard at winehq.org
Mon Nov 5 15:51:52 CST 2018


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

Author: Gabriel Iv─âncescu <gabrielopcode at gmail.com>
Date:   Fri Nov  2 16:50:40 2018 +0200

shell32/autocomplete: Reset the enumerator when the text is empty even when auto-suggest is disabled.

This is needed for auto-append only AutoComplete controls.

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 3e55202..a6404ca 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -454,7 +454,8 @@ static void autocomplete_text(IAutoCompleteImpl *ac, HWND hwnd, enum autoappend_
     if (flag != autoappend_flag_displayempty && len == 0)
     {
         if (ac->options & ACO_AUTOSUGGEST)
-            hide_listbox(ac, ac->hwndListBox, TRUE);
+            hide_listbox(ac, ac->hwndListBox, FALSE);
+        free_enum_strs(ac);
         return;
     }
 




More information about the wine-cvs mailing list