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
e49feacd
Commit
e49feacd
authored
Apr 08, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Use INPUTCONTEXT directly in ImmGetCompositionWindow.
parent
048d2f0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
imm.c
dlls/imm32/imm.c
+8
-7
imm32.c
dlls/imm32/tests/imm32.c
+2
-2
No files found.
dlls/imm32/imm.c
View file @
e49feacd
...
...
@@ -1740,17 +1740,18 @@ LONG WINAPI ImmGetCompositionStringW(
/***********************************************************************
* ImmGetCompositionWindow (IMM32.@)
*/
BOOL
WINAPI
ImmGetCompositionWindow
(
HIMC
hIMC
,
LPCOMPOSITIONFORM
lpCompForm
)
BOOL
WINAPI
ImmGetCompositionWindow
(
HIMC
himc
,
COMPOSITIONFORM
*
composition
)
{
struct
imc
*
data
=
get_imc_data
(
hIMC
);
INPUTCONTEXT
*
ctx
;
BOOL
ret
;
TRACE
(
"(%p, %p)
\n
"
,
hIMC
,
lpCompForm
);
TRACE
(
"himc %p, composition %p
\n
"
,
himc
,
composition
);
if
(
!
data
)
return
FALSE
;
if
(
!
(
ctx
=
ImmLockIMC
(
himc
)))
return
FALSE
;
if
((
ret
=
!!
(
ctx
->
fdwInit
&
INIT_COMPFORM
)))
*
composition
=
ctx
->
cfCompForm
;
ImmUnlockIMC
(
himc
);
*
lpCompForm
=
data
->
IMC
.
cfCompForm
;
return
TRUE
;
return
ret
;
}
/***********************************************************************
...
...
dlls/imm32/tests/imm32.c
View file @
e49feacd
...
...
@@ -6122,8 +6122,8 @@ static void test_ImmSetCompositionWindow(void)
ctx
->
cfCompForm
=
expect_form
;
ctx
->
fdwInit
=
~
INIT_COMPFORM
;
memset
(
&
comp_form
,
0xcd
,
sizeof
(
comp_form
)
);
todo_wine
ok_ret
(
0
,
ImmGetCompositionWindow
(
himc
,
&
comp_form
)
);
todo_wine
ok_eq
(
0xcdcdcdcd
,
comp_form
.
dwStyle
,
UINT
,
"%#x"
);
ok_ret
(
0
,
ImmGetCompositionWindow
(
himc
,
&
comp_form
)
);
ok_eq
(
0xcdcdcdcd
,
comp_form
.
dwStyle
,
UINT
,
"%#x"
);
ctx
->
fdwInit
=
INIT_COMPFORM
;
ok_ret
(
1
,
ImmGetCompositionWindow
(
himc
,
&
comp_form
)
);
check_composition_form
(
&
comp_form
,
&
expect_form
);
...
...
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