mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix deleting compose string in IME (flutter/engine#29396)
This commit is contained in:
parent
cafef4382c
commit
ba99c3b465
@ -157,7 +157,7 @@ std::optional<std::u16string> TextInputManagerWin32::GetString(int type) const {
|
||||
const long compose_bytes =
|
||||
::ImmGetCompositionString(imm_context.get(), type, nullptr, 0);
|
||||
const long compose_length = compose_bytes / sizeof(wchar_t);
|
||||
if (compose_length <= 0) {
|
||||
if (compose_length < 0) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user