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@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2018-11-02 16:50:40 +02:00 committed by Alexandre Julliard
parent 4f85424d58
commit 9a41584c49
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}