Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d63eccc6
Commit
d63eccc6
authored
Sep 27, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: ImmConfigureIME should return 0 when the type is IME_CONFIG_REGISTERWORD…
imm32: ImmConfigureIME should return 0 when the type is IME_CONFIG_REGISTERWORD and the data is NULL.
parent
55a28dd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
imm.c
dlls/imm32/imm.c
+6
-0
imm32.c
dlls/imm32/tests/imm32.c
+18
-0
No files found.
dlls/imm32/imm.c
View file @
d63eccc6
...
...
@@ -513,6 +513,9 @@ BOOL WINAPI ImmConfigureIMEA(
TRACE
(
"(%p, %p, %d, %p):
\n
"
,
hKL
,
hWnd
,
dwMode
,
lpData
);
if
(
dwMode
==
IME_CONFIG_REGISTERWORD
&&
!
lpData
)
return
FALSE
;
if
(
immHkl
->
hIME
&&
immHkl
->
pImeConfigure
)
{
if
(
dwMode
!=
IME_CONFIG_REGISTERWORD
||
!
is_kbd_ime_unicode
(
immHkl
))
...
...
@@ -545,6 +548,9 @@ BOOL WINAPI ImmConfigureIMEW(
TRACE
(
"(%p, %p, %d, %p):
\n
"
,
hKL
,
hWnd
,
dwMode
,
lpData
);
if
(
dwMode
==
IME_CONFIG_REGISTERWORD
&&
!
lpData
)
return
FALSE
;
if
(
immHkl
->
hIME
&&
immHkl
->
pImeConfigure
)
{
if
(
dwMode
!=
IME_CONFIG_REGISTERWORD
||
is_kbd_ime_unicode
(
immHkl
))
...
...
dlls/imm32/tests/imm32.c
View file @
d63eccc6
...
...
@@ -254,11 +254,29 @@ static int test_ImmGetCompositionString(void)
return
0
;
}
static
int
test_ImmIME
(
void
)
{
HIMC
imc
;
imc
=
ImmGetContext
(
hwnd
);
if
(
imc
)
{
BOOL
rc
;
rc
=
ImmConfigureIMEA
(
imc
,
NULL
,
IME_CONFIG_REGISTERWORD
,
NULL
);
ok
(
rc
==
0
,
"ImmConfigureIMEA did not fail
\n
"
);
rc
=
ImmConfigureIMEW
(
imc
,
NULL
,
IME_CONFIG_REGISTERWORD
,
NULL
);
ok
(
rc
==
0
,
"ImmConfigureIMEW did not fail
\n
"
);
}
ImmReleaseContext
(
hwnd
,
imc
);
return
0
;
}
START_TEST
(
imm32
)
{
if
(
init
())
{
test_ImmNotifyIME
();
test_ImmGetCompositionString
();
test_ImmIME
();
}
cleanup
();
}
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