https://git.reactos.org/?p=reactos.git;a=commitdiff;h=737278276f66192d508c5…
commit 737278276f66192d508c5dad9d024f29ee902de9
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Sep 28 10:41:21 2020 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Sep 28 10:41:21 2020 +0900
[BROWSEUI] Follow-up part 2 of #3242 (6b6f971)
Don't recognize backslash of the last character.
CORE-1419
---
dll/win32/browseui/CAutoComplete.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/browseui/CAutoComplete.cpp b/dll/win32/browseui/CAutoComplete.cpp
index 5f4aff54140..1f300bc1a2a 100644
--- a/dll/win32/browseui/CAutoComplete.cpp
+++ b/dll/win32/browseui/CAutoComplete.cpp
@@ -304,7 +304,7 @@ static void Edit_BackWord(HWND hwndEdit)
for (; 0 < iStart; --iStart)
{
- if (pszText[iStart - 1] == L'\\' ||
+ if ((pszText[iStart - 1] == L'\\' && pszText[iStart] != 0) ||
(IsCharSpaceW(pszText[iStart - 1]) &&
IsCharAlphaNumericW(pszText[iStart])))
{
SendMessageW(hwndEdit, EM_SETSEL, iStart, iEnd);