Skip to content

Commit 1304a9b

Browse files
Taizo KurashigePaul Hohensee
authored andcommitted
8278472: Invalid value set to CANDIDATEFORM structure
Reviewed-by: phh Backport-of: 2426d58e592c54de64ebe0f06448d239aeced082
1 parent 176d674 commit 1304a9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jdk/src/windows/native/sun/windows/awt_Component.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3862,11 +3862,11 @@ void AwtComponent::SetCandidateWindow(int iCandType, int x, int y)
38623862
HIMC hIMC = ImmGetContext(hwnd);
38633863
if (hIMC) {
38643864
CANDIDATEFORM cf;
3865-
cf.dwStyle = CFS_POINT;
3865+
cf.dwStyle = CFS_CANDIDATEPOS;
38663866
ImmGetCandidateWindow(hIMC, 0, &cf);
38673867
if (x != cf.ptCurrentPos.x || y != cf.ptCurrentPos.y) {
38683868
cf.dwIndex = iCandType;
3869-
cf.dwStyle = CFS_POINT;
3869+
cf.dwStyle = CFS_CANDIDATEPOS;
38703870
cf.ptCurrentPos.x = x;
38713871
cf.ptCurrentPos.y = y;
38723872
cf.rcArea.left = cf.rcArea.top = cf.rcArea.right = cf.rcArea.bottom = 0;

0 commit comments

Comments
 (0)