[PATCH 1/2] shell32/autocomplete: Don't autoappend on Paste if ACO_AUTOAPPEND is off

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Jan 23 05:36:06 CST 2019


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---

Fixes a minor issue.

 dlls/shell32/autocomplete.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index 6c013a8..679ec29 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -761,7 +761,8 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
             return ret;
         case WM_PASTE:
             ret = CallWindowProcW(This->wpOrigEditProc, hwnd, uMsg, wParam, lParam);
-            autocomplete_text(This, hwnd, autoappend_flag_yes);
+            autocomplete_text(This, hwnd, (This->options & ACO_AUTOAPPEND)
+                                          ? autoappend_flag_yes : autoappend_flag_no);
             return ret;
         case WM_MOUSEWHEEL:
             if ((This->options & ACO_AUTOSUGGEST) && IsWindowVisible(This->hwndListBox))
-- 
2.19.1




More information about the wine-devel mailing list