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
161fa4bc
Commit
161fa4bc
authored
May 08, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
May 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfKeystrokeMgr::UnadviseKeyEventSink.
parent
f20c4d69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+1
-1
threadmgr.c
dlls/msctf/threadmgr.c
+25
-2
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
161fa4bc
...
...
@@ -437,7 +437,7 @@ static void test_KeystrokeMgr(void)
ok
(
hr
==
CONNECT_E_NOCONNECTION
,
"ITfKeystrokeMgr_UnpreserveKey inproperly succeeded
\n
"
);
hr
=
ITfKeystrokeMgr_UnadviseKeyEventSink
(
keymgr
,
tid
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_UnadviseKeyEventSink failed
\n
"
);
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_UnadviseKeyEventSink failed
\n
"
);
ITfKeystrokeMgr_Release
(
keymgr
);
ITfKeyEventSink_Release
(
sink
);
...
...
dlls/msctf/threadmgr.c
View file @
161fa4bc
...
...
@@ -546,8 +546,31 @@ static HRESULT WINAPI KeystrokeMgr_UnadviseKeyEventSink(ITfKeystrokeMgr *iface,
TfClientId
tid
)
{
ThreadMgr
*
This
=
impl_from_ITfKeystrokeMgrVtbl
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
CLSID
textservice
;
ITfKeyEventSink
*
check
=
NULL
;
TRACE
(
"(%p) %x
\n
"
,
This
,
tid
);
if
(
!
tid
)
return
E_INVALIDARG
;
textservice
=
get_textservice_clsid
(
tid
);
if
(
IsEqualCLSID
(
&
GUID_NULL
,
&
textservice
))
return
E_INVALIDARG
;
get_textservice_sink
(
tid
,
&
IID_ITfKeyEventSink
,
(
IUnknown
**
)
&
check
);
if
(
!
check
)
return
CONNECT_E_NOCONNECTION
;
set_textservice_sink
(
tid
,
&
IID_ITfKeyEventSink
,
NULL
);
ITfKeyEventSink_Release
(
check
);
if
(
This
->
forgroundKeyEventSink
==
check
)
{
ITfKeyEventSink_Release
(
This
->
forgroundKeyEventSink
);
This
->
forgroundKeyEventSink
=
NULL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
KeystrokeMgr_GetForeground
(
ITfKeystrokeMgr
*
iface
,
...
...
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