windows: cefclient: Fix crash when triggering IME popup (see issue #3313)

This commit is contained in:
Marshall Greenblatt 2022-08-04 13:18:17 -04:00
parent e4239b9373
commit 75c6895fb5
1 changed files with 1 additions and 1 deletions

View File

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