[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    [PATCH v4 3/4] shell32/autocomplete: Reset the enumerator when the listbox is empty even when auto-s
From:       Gabriel Ivăncescu <gabrielopcode () gmail ! com>
Date:       2018-10-31 11:24:30
Message-ID: c84806237ad3cc5953ea8c9fd6f51f80fc50f46c.1540984942.git.gabrielopcode () gmail ! com
[Download RAW message or body]

This is needed for auto-append only AutoComplete controls.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@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 22f6ab8..8a622b7 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -458,6 +458,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




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic