diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-17 22:06:22 +0200 |
---|---|---|
committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-01-18 19:20:36 +0200 |
commit | 89f3bf6c13c07038c1d50ea0babb35045cba7f77 (patch) | |
tree | 68415dd154dfe03dea4701c9baa7701433ea8804 | |
parent | 1c0d47843664e0766e04f60674cb66aab4197f0f (diff) |
SL-18985 Crash at std::basic_string::erase
-rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 6039aa6618..11a3c943ee 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -4438,7 +4438,7 @@ BOOL LLWindowWin32::handleImeRequests(WPARAM request, LPARAM param, LRESULT *res LLWString context = find_context(wtext, preedit, preedit_length, &context_offset); preedit -= context_offset; preedit_length = llmin(preedit_length, (S32)context.length() - preedit); - if (preedit_length && preedit >= 0) + if (preedit_length > 0 && preedit >= 0) { // IMR_DOCUMENTFEED may be called when we have an active preedit. // We should pass the context string *excluding* the preedit string. |