[PATCH 5/6] shell32/autocomplete: Reset the enumerator when the listbox is empty even when auto-suggest is disabled

Gabriel Ivăncescu gabrielopcode at gmail.com
Tue Oct 23 06:26:06 CDT 2018


This is needed for auto-append only AutoComplete controls.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/shell32/autocomplete.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index b0a5208..ffde6a5 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -607,6 +607,8 @@ static void autocomplete_text(IAutoCompleteImpl *ac, HWND hwnd, enum autoappend_
     {
         if (ac->options & ACO_AUTOSUGGEST)
             hide_listbox(ac, ac->hwndListBox);
+        else
+            free_enum_strs(ac);
         return;
     }
 
-- 
1.9.1




More information about the wine-devel mailing list