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
61219f1b
Commit
61219f1b
authored
Mar 28, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Call ImeSelect from ImmLockIMC with current IME.
parent
de432361
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
+23
-12
imm.c
dlls/imm32/imm.c
+9
-6
imm32.c
dlls/imm32/tests/imm32.c
+14
-6
No files found.
dlls/imm32/imm.c
View file @
61219f1b
...
...
@@ -2829,14 +2829,17 @@ DWORD WINAPI ImmGetImeMenuItemsW( HIMC himc, DWORD flags, DWORD type, IMEMENUITE
/***********************************************************************
* ImmLockIMC(IMM32.@)
*/
LPINPUTCONTEXT
WINAPI
ImmLockIMC
(
HIMC
hIMC
)
INPUTCONTEXT
*
WINAPI
ImmLockIMC
(
HIMC
himc
)
{
struct
imc
*
data
=
get_imc_data
(
hIMC
);
struct
imc
*
imc
=
get_imc_data
(
himc
);
if
(
!
data
)
return
NULL
;
data
->
dwLock
++
;
return
&
data
->
IMC
;
TRACE
(
"himc %p
\n
"
,
himc
);
if
(
!
imc
)
return
NULL
;
imc
->
dwLock
++
;
imc_select_hkl
(
imc
,
GetKeyboardLayout
(
0
)
);
return
&
imc
->
IMC
;
}
/***********************************************************************
...
...
dlls/imm32/tests/imm32.c
View file @
61219f1b
...
...
@@ -3798,7 +3798,6 @@ static void test_ImmActivateLayout(void)
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
IME_SELECT
,
.
select
=
1
,
.
todo
=
TRUE
,
},
{
0
},
};
...
...
@@ -3816,6 +3815,15 @@ static void test_ImmActivateLayout(void)
},
{
0
},
};
const
struct
ime_call
activate_with_window_seq
[]
=
{
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
IME_SELECT
,
.
select
=
1
,
.
todo
=
TRUE
,
},
{
0
},
};
HKL
hkl
,
old_hkl
=
GetKeyboardLayout
(
0
);
UINT
ret
;
...
...
@@ -3843,7 +3851,6 @@ static void test_ImmActivateLayout(void)
SET_EXPECT
(
ImeInquire
);
ok_ret
(
1
,
ImmActivateLayout
(
hkl
)
);
ok_seq
(
activate_seq
);
todo_wine
CHECK_CALLED
(
ImeInquire
);
ok_eq
(
hkl
,
GetKeyboardLayout
(
0
),
HKL
,
"%p"
);
...
...
@@ -3851,8 +3858,10 @@ static void test_ImmActivateLayout(void)
ok_ret
(
1
,
ImmActivateLayout
(
hkl
)
);
ok_seq
(
empty_sequence
);
todo_ImeDestroy
=
TRUE
;
/* Wine doesn't leak the IME */
ok_ret
(
1
,
ImmActivateLayout
(
old_hkl
)
);
ok_seq
(
deactivate_seq
);
todo_ImeDestroy
=
FALSE
;
ok_eq
(
old_hkl
,
GetKeyboardLayout
(
0
),
HKL
,
"%p"
);
...
...
@@ -3865,7 +3874,6 @@ static void test_ImmActivateLayout(void)
SET_EXPECT
(
ImeDestroy
);
ret
=
ImmFreeLayout
(
hkl
);
ok
(
ret
,
"ImmFreeLayout returned %u
\n
"
,
ret
);
todo_wine
CHECK_CALLED
(
ImeDestroy
);
ok_seq
(
empty_sequence
);
...
...
@@ -3883,7 +3891,7 @@ static void test_ImmActivateLayout(void)
ok_eq
(
old_hkl
,
ActivateKeyboardLayout
(
hkl
,
0
),
HKL
,
"%p"
);
todo_wine
CHECK_CALLED
(
ImeInquire
);
ok_seq
(
activate_seq
);
ok_seq
(
activate_
with_window_
seq
);
ok_eq
(
hkl
,
GetKeyboardLayout
(
0
),
HKL
,
"%p"
);
...
...
@@ -3919,12 +3927,12 @@ static void test_ImmCreateInputContext(void)
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
IME_SELECT
,
.
select
=
1
,
.
todo
=
TRUE
,
.
flaky_himc
=
TRUE
,
.
flaky_himc
=
TRUE
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc[0]*/
,
.
func
=
IME_SELECT
,
.
select
=
1
,
.
todo
=
TRUE
,
.
flaky_himc
=
TRUE
,
.
flaky_himc
=
TRUE
,
},
{
0
},
};
...
...
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