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
32828799
Commit
32828799
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::IsPreservedKey.
parent
a2c7a994
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+3
-3
threadmgr.c
dlls/msctf/threadmgr.c
+19
-2
No files found.
dlls/msctf/tests/inputprocessor.c
View file @
32828799
...
...
@@ -420,14 +420,14 @@ static void test_KeystrokeMgr(void)
preserved
=
FALSE
;
hr
=
ITfKeystrokeMgr_IsPreservedKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
,
&
preserved
);
todo_wine
ok
(
hr
==
S_OK
,
"ITfKeystrokeMgr_IsPreservedKey failed
\n
"
);
if
(
hr
==
S_OK
)
todo_wine
ok
(
preserved
==
TRUE
,
"misreporting preserved key
\n
"
);
if
(
hr
==
S_OK
)
ok
(
preserved
==
TRUE
,
"misreporting preserved key
\n
"
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"ITfKeystrokeMgr_UnpreserveKey failed
\n
"
);
hr
=
ITfKeystrokeMgr_IsPreservedKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
,
&
preserved
);
todo_wine
ok
(
hr
==
S_FALSE
,
"ITfKeystrokeMgr_IsPreservedKey failed
\n
"
);
if
(
hr
==
S_FALSE
)
todo_wine
ok
(
preserved
==
FALSE
,
"misreporting preserved key
\n
"
);
ok
(
hr
==
S_FALSE
,
"ITfKeystrokeMgr_IsPreservedKey failed
\n
"
);
if
(
hr
==
S_FALSE
)
ok
(
preserved
==
FALSE
,
"misreporting preserved key
\n
"
);
hr
=
ITfKeystrokeMgr_UnpreserveKey
(
keymgr
,
&
CLSID_PreservedKey
,
&
tfpk
);
ok
(
hr
==
CONNECT_E_NOCONNECTION
,
"ITfKeystrokeMgr_UnpreserveKey inproperly succeeded
\n
"
);
...
...
dlls/msctf/threadmgr.c
View file @
32828799
...
...
@@ -547,8 +547,25 @@ static HRESULT WINAPI KeystrokeMgr_IsPreservedKey(ITfKeystrokeMgr *iface,
REFGUID
rguid
,
const
TF_PRESERVEDKEY
*
pprekey
,
BOOL
*
pfRegistered
)
{
ThreadMgr
*
This
=
impl_from_ITfKeystrokeMgrVtbl
(
iface
);
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
struct
list
*
cursor
;
TRACE
(
"(%p) %s (%x %x) %p
\n
"
,
This
,
debugstr_guid
(
rguid
),
(
pprekey
)
?
pprekey
->
uVKey
:
0
,
(
pprekey
)
?
pprekey
->
uModifiers
:
0
,
pfRegistered
);
if
(
!
rguid
||
!
pprekey
||
!
pfRegistered
)
return
E_INVALIDARG
;
LIST_FOR_EACH
(
cursor
,
&
This
->
CurrentPreservedKeys
)
{
PreservedKey
*
key
=
LIST_ENTRY
(
cursor
,
PreservedKey
,
entry
);
if
(
IsEqualGUID
(
rguid
,
&
key
->
guid
)
&&
pprekey
->
uVKey
==
key
->
prekey
.
uVKey
&&
pprekey
->
uModifiers
==
key
->
prekey
.
uModifiers
)
{
*
pfRegistered
=
TRUE
;
return
S_OK
;
}
}
*
pfRegistered
=
FALSE
;
return
S_FALSE
;
}
static
HRESULT
WINAPI
KeystrokeMgr_PreserveKey
(
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