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 18dac30874
commit 9f7a59536c

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;