[PATCH 1/5] shell32/autocomplete: Implement ResetEnumerator

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Nov 7 09:14:15 CST 2018


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

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index a6404ca..8437d2d 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -24,8 +24,6 @@
   - implement ACO_SEARCH style
   - implement ACO_FILTERPREFIXES style
   - implement ACO_RTLREADING style
-  - implement ResetEnumerator
-  
  */
 #include "config.h"
 
@@ -1041,9 +1039,15 @@ static HRESULT WINAPI IAutoCompleteDropDown_fnResetEnumerator(
 {
     IAutoCompleteImpl *This = impl_from_IAutoCompleteDropDown(iface);
 
-    FIXME("(%p): stub\n", This);
+    TRACE("(%p)\n", This);
 
-    return E_NOTIMPL;
+    if (This->initialized)
+    {
+        free_enum_strs(This);
+        if ((This->options & ACO_AUTOSUGGEST) && IsWindowVisible(This->hwndListBox))
+            autocomplete_text(This, This->hwndEdit, autoappend_flag_displayempty);
+    }
+    return S_OK;
 }
 
 /**************************************************************************
-- 
2.19.1




More information about the wine-devel mailing list