shell32/autocomplete: Don't autoappend on Paste if ACO_AUTOAPPEND is off.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2019-01-23 13:36:06 +02:00 committed by Alexandre Julliard
parent 7bd3072d7f
commit b9224c2184
1 changed files with 2 additions and 1 deletions

View File

@ -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))