Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a2c7a994
Commit
a2c7a994
authored
May 07, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
May 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfKeystrokeMgr::UnpreserveKey.
parent
45c3ff2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
3 deletions
+24
-3
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+1
-1
threadmgr.c
dlls/msctf/threadmgr.c
+23
-2
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
a2c7a994
...
...
@@ -430,7 +430,7 @@ static void test_KeystrokeMgr(void)
if
(
hr
==
S_FALSE
)
todo_wine
ok
(
preserved
==
FALSE
,
"misreporting preserved key
\n
"
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
todo_wine
ok
(
hr
==
CONNECT_E_NOCONNECTION
,
"ITfKeystrokeMgr_UnpreserveKey inproperly succeeded
\n
"
);
ok
(
hr
==
CONNECT_E_NOCONNECTION
,
"ITfKeystrokeMgr_UnpreserveKey inproperly succeeded
\n
"
);
hr
=
ITfKeystrokeMgr_UnadviseKeyEventSink
(
keymgr
,
tid
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_UnadviseKeyEventSink failed
\n
"
);
...
...
dlls/msctf/threadmgr.c
View file @
a2c7a994
...
...
@@ -598,8 +598,29 @@ static HRESULT WINAPI KeystrokeMgr_UnpreserveKey(ITfKeystrokeMgr *iface,
REFGUID
rguid
,
const
TF_PRESERVEDKEY
*
pprekey
)
{
ThreadMgr
*
This
=
impl_from_ITfKeystrokeMgrVtbl
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
PreservedKey
*
key
=
NULL
;
struct
list
*
cursor
;
TRACE
(
"(%p) %s (%x %x)
\n
"
,
This
,
debugstr_guid
(
rguid
),(
pprekey
)
?
pprekey
->
uVKey
:
0
,
(
pprekey
)
?
pprekey
->
uModifiers
:
0
);
if
(
!
pprekey
||
!
rguid
)
return
E_INVALIDARG
;
LIST_FOR_EACH
(
cursor
,
&
This
->
CurrentPreservedKeys
)
{
key
=
LIST_ENTRY
(
cursor
,
PreservedKey
,
entry
);
if
(
IsEqualGUID
(
rguid
,
&
key
->
guid
)
&&
pprekey
->
uVKey
==
key
->
prekey
.
uVKey
&&
pprekey
->
uModifiers
==
key
->
prekey
.
uModifiers
)
break
;
key
=
NULL
;
}
if
(
!
key
)
return
CONNECT_E_NOCONNECTION
;
list_remove
(
&
key
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
key
->
description
);
HeapFree
(
GetProcessHeap
(),
0
,
key
);
return
S_OK
;
}
static
HRESULT
WINAPI
KeystrokeMgr_SetPreservedKeyDescription
(
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