Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6bc088b2
Commit
6bc088b2
authored
Jan 04, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: ImmNotifyIMM with CPS_CANCEL fully clears the composition string. Also…
imm32: ImmNotifyIMM with CPS_CANCEL fully clears the composition string. Also enable respective tests.
parent
d7cbaf57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
imm.c
dlls/imm32/imm.c
+7
-4
imm32.c
dlls/imm32/tests/imm32.c
+0
-4
No files found.
dlls/imm32/imm.c
View file @
6bc088b2
...
...
@@ -1406,15 +1406,18 @@ BOOL WINAPI ImmNotifyIME(
case
CPS_CANCEL
:
TRACE
(
"%s - %s
\n
"
,
"NI_COMPOSITIONSTR"
,
"CPS_CANCEL"
);
{
HIMCC
newCompStr
;
BOOL
send
;
if
(
pX11DRV_ForceXIMReset
)
pX11DRV_ForceXIMReset
(
root_context
->
IMC
.
hWnd
);
newCompStr
=
updateCompStr
(
root_context
->
IMC
.
hCompStr
,
NULL
,
0
);
send
=
(
root_context
->
IMC
.
hCompStr
!=
NULL
);
ImmDestroyIMCC
(
root_context
->
IMC
.
hCompStr
);
root_context
->
IMC
.
hCompStr
=
newCompStr
;
root_context
->
IMC
.
hCompStr
=
NULL
;
ImmInternalPostIMEMessage
(
WM_IME_COMPOSITION
,
0
,
if
(
send
)
ImmInternalPostIMEMessage
(
WM_IME_COMPOSITION
,
0
,
GCS_COMPSTR
);
rc
=
TRUE
;
}
...
...
dlls/imm32/tests/imm32.c
View file @
6bc088b2
...
...
@@ -183,11 +183,9 @@ static int test_ImmNotifyIME(void) {
ok
(
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
),
"Canceling an "
"empty composition string succeeds.
\n
"
);
todo_wine
{
ok
(
!
msg_spy_find_msg
(
WM_IME_COMPOSITION
),
"Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
"the composition string being canceled is empty.
\n
"
);
}
msg_spy_flush_msgs
();
...
...
@@ -203,11 +201,9 @@ static int test_ImmNotifyIME(void) {
ok
(
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
),
"Canceling an "
"empty composition string succeeds.
\n
"
);
todo_wine
{
ok
(
!
msg_spy_find_msg
(
WM_IME_COMPOSITION
),
"Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
"the composition string being canceled is empty.
\n
"
);
}
msg_spy_flush_msgs
();
ImmReleaseContext
(
hwnd
,
imc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment