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
d0a88bf7
Commit
d0a88bf7
authored
Apr 06, 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 ImmSetStatusWindowPos.
parent
e49feacd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
imm.c
dlls/imm32/imm.c
+13
-10
imm32.c
dlls/imm32/tests/imm32.c
+2
-2
No files found.
dlls/imm32/imm.c
View file @
d0a88bf7
...
...
@@ -2698,25 +2698,28 @@ BOOL WINAPI ImmSetOpenStatus( HIMC himc, BOOL status )
/***********************************************************************
* ImmSetStatusWindowPos (IMM32.@)
*/
BOOL
WINAPI
ImmSetStatusWindowPos
(
HIMC
hIMC
,
LPPOINT
lpptPos
)
BOOL
WINAPI
ImmSetStatusWindowPos
(
HIMC
himc
,
POINT
*
pos
)
{
struct
imc
*
data
=
get_imc_data
(
hIMC
)
;
INPUTCONTEXT
*
ctx
;
TRACE
(
"(%p, %p)
\n
"
,
hIMC
,
lpptPos
);
TRACE
(
"himc %p, pos %s
\n
"
,
himc
,
wine_dbgstr_point
(
pos
)
);
if
(
!
data
||
!
lpptP
os
)
if
(
!
p
os
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
NtUserQueryInputContext
(
hIMC
,
NtUserInputContextThreadId
)
!=
GetCurrentThreadId
())
return
FALSE
;
if
(
NtUserQueryInputContext
(
himc
,
NtUserInputContextThreadId
)
!=
GetCurrentThreadId
())
return
FALSE
;
if
(
!
(
ctx
=
ImmLockIMC
(
himc
)))
return
FALSE
;
TRACE
(
"
\t
%s
\n
"
,
wine_dbgstr_point
(
lpptPos
));
ctx
->
ptStatusWndPos
=
*
pos
;
ctx
->
fdwInit
|=
INIT_STATUSWNDPOS
;
data
->
IMC
.
ptStatusWndPos
=
*
lpptPos
;
ImmNotifyIME
(
hIMC
,
NI_CONTEXTUPDATED
,
0
,
IMC_SETSTATUSWINDOWPOS
);
imc_notify_ime
(
data
,
IMN_SETSTATUSWINDOWPOS
,
0
);
ImmNotifyIME
(
himc
,
NI_CONTEXTUPDATED
,
0
,
IMC_SETSTATUSWINDOWPOS
);
SendMessageW
(
ctx
->
hWnd
,
WM_IME_NOTIFY
,
IMN_SETSTATUSWINDOWPOS
,
0
);
ImmUnlockIMC
(
himc
);
return
TRUE
;
}
...
...
dlls/imm32/tests/imm32.c
View file @
d0a88bf7
...
...
@@ -6188,7 +6188,7 @@ static void test_ImmSetStatusWindowPos(void)
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_NOTIFY
,
.
notify
=
{.
action
=
NI_CONTEXTUPDATED
,
.
index
=
0
,
.
value
=
IMC_SETSTATUSWINDOWPOS
},
},
{
.
todo
=
TRUE
},
{
0
},
};
INPUTCONTEXT
*
ctx
;
POINT
pos
;
...
...
@@ -6235,7 +6235,7 @@ static void test_ImmSetStatusWindowPos(void)
ctx
->
fdwInit
=
0
;
ok_ret
(
1
,
ImmSetStatusWindowPos
(
himc
,
&
pos
)
);
ok_seq
(
set_status_window_pos_0_seq
);
todo_wine
ok_eq
(
INIT_STATUSWNDPOS
,
ctx
->
fdwInit
,
UINT
,
"%u"
);
ok_eq
(
INIT_STATUSWNDPOS
,
ctx
->
fdwInit
,
UINT
,
"%u"
);
ok_ret
(
1
,
ImmSetStatusWindowPos
(
himc
,
&
pos
)
);
ok_seq
(
set_status_window_pos_0_seq
);
...
...
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