Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- dlls/shell32/autocomplete.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c index c5bc582..c145dc0 100644 --- a/dlls/shell32/autocomplete.c +++ b/dlls/shell32/autocomplete.c @@ -521,6 +521,8 @@ static HRESULT WINAPI IAutoComplete2_fnEnable( TRACE("(%p)->(%s)\n", This, (fEnable)?"true":"false"); + if (This->enabled && !fEnable && This->hwndListBox) + hide_listbox(This, This->hwndListBox); This->enabled = fEnable; return hr; @@ -706,6 +708,8 @@ static HRESULT WINAPI IAutoComplete2_fnSetOptions( if ((This->options & ACO_AUTOSUGGEST) && This->hwndEdit && !This->hwndListBox) create_listbox(This); + else if (!(This->options & ACO_AUTOSUGGEST) && This->hwndListBox) + hide_listbox(This, This->hwndListBox); return hr; } -- 1.9.1