Set |pcRunInfoRet| to 0 if |pcchPlainRet| is 0 in |ITextStoreACP::GetText|
TSF on Windows has an assumption that |pcchPlainRet| to be 0 if focused edit control has no text(empty). Failure to satisfy the assumption may cause hung (dead looped) in the application when using some legacy IMEs. Therefore, we should set |pcchPlainRet| to 0 if there is no text in focused edit control (|pcchPlainRet| is 0). Bug: 981667 Change-Id: I0e851e9c82e7716c5434cfd8ca93eb1a091d0b79 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1694408 Commit-Queue: Siye Liu <siliu@microsoft.com> Reviewed-by:Yohei Yukawa <yukawa@chromium.org> Cr-Commit-Position: refs/heads/master@{#676183}
Showing
Please register or sign in to comment