=?UTF-8?Q?Gabriel=20Iv=C4=83ncescu=20?=: shell32/autocomplete: Fix handling of Backspace and Delete.

Alexandre Julliard julliard at winehq.org
Thu Nov 29 15:09:38 CST 2018


Module: wine
Branch: stable
Commit: e3536530877ba55cc3e042a4f73df64841cfa1b9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=e3536530877ba55cc3e042a4f73df64841cfa1b9

Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date:   Thu Sep  6 21:26:12 2018 +0300

shell32/autocomplete: Fix handling of Backspace and Delete.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=22255
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 0c049b6791e731c443317ce40d83e4a22b4f55a9)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/shell32/autocomplete.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/dlls/shell32/autocomplete.c b/dlls/shell32/autocomplete.c
index d804e42..9a6bdc5 100644
--- a/dlls/shell32/autocomplete.c
+++ b/dlls/shell32/autocomplete.c
@@ -200,19 +200,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
                         ShowWindow(This->hwndListBox, SW_HIDE);
                         return CallWindowProcW(This->wpOrigEditProc, hwnd, uMsg, wParam, lParam);
                     }
-                    if (This->options & ACO_AUTOAPPEND) {
-                        DWORD b;
-                        SendMessageW(hwnd, EM_GETSEL, (WPARAM)&b, 0);
-                        if (b>1) {
-                            hwndText[b-1] = '\0';
-                        } else {
-                            hwndText[0] = '\0';
-                            SetWindowTextW(hwnd, hwndText);
-                        }
-                    }
                     break;
-                default:
-                    ;
             }
 
             SendMessageW(This->hwndListBox, LB_RESETCONTENT, 0, 0);




More information about the wine-cvs mailing list