From 75c6895fb5326e47cb0eef0836046bf81fa6dd8e Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 4 Aug 2022 13:18:17 -0400 Subject: [PATCH] windows: cefclient: Fix crash when triggering IME popup (see issue #3313) --- tests/cefclient/browser/osr_ime_handler_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cefclient/browser/osr_ime_handler_win.cc b/tests/cefclient/browser/osr_ime_handler_win.cc index b497deb17..6e8546fcd 100644 --- a/tests/cefclient/browser/osr_ime_handler_win.cc +++ b/tests/cefclient/browser/osr_ime_handler_win.cc @@ -74,7 +74,7 @@ void GetCompositionUnderlines( ::ImmGetCompositionString(imc, GCS_COMPCLAUSE, &clause_data[0], clause_size); for (int i = 0; i < clause_length - 1; ++i) { - cef_composition_underline_t underline; + cef_composition_underline_t underline = {}; underline.range.from = clause_data[i]; underline.range.to = clause_data[i + 1]; underline.color = ColorUNDERLINE;