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
a840c35d
Commit
a840c35d
authored
Feb 06, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Hook up ITfContextOwnerCompositionSink if present.
parent
42be55d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
context.c
dlls/msctf/context.c
+18
-8
No files found.
dlls/msctf/context.c
View file @
a840c35d
...
...
@@ -63,7 +63,7 @@ typedef struct tagContext {
TfClientId
tidOwner
;
ITextStoreACP
*
pITextStoreACP
;
/* ITfContextOwnerCompositionSink */
ITfContextOwnerCompositionSink
*
pITfContextOwnerCompositionSink
;
ITextStoreACPSink
*
pITextStoreACPSink
;
...
...
@@ -112,6 +112,9 @@ static void Context_Destructor(Context *This)
if
(
This
->
pITextStoreACP
)
ITextStoreACPSink_Release
(
This
->
pITextStoreACP
);
if
(
This
->
pITfContextOwnerCompositionSink
)
ITextStoreACPSink_Release
(
This
->
pITfContextOwnerCompositionSink
);
LIST_FOR_EACH_SAFE
(
cursor
,
cursor2
,
&
This
->
pContextKeyEventSink
)
{
ContextSink
*
sink
=
LIST_ENTRY
(
cursor
,
ContextSink
,
entry
);
...
...
@@ -428,15 +431,22 @@ HRESULT Context_Constructor(TfClientId tidOwner, IUnknown *punk, ITfContext **pp
This
->
refCount
=
1
;
This
->
tidOwner
=
tidOwner
;
if
(
punk
&&
SUCCEEDED
(
IUnknown_QueryInterface
(
punk
,
&
IID_ITextStoreACP
,
(
LPVOID
*
)
&
This
->
pITextStoreACP
)))
if
(
punk
)
{
if
(
SUCCEEDED
(
TextStoreACPSink_Constructor
(
&
This
->
pITextStoreACPSink
,
This
)))
ITextStoreACP_AdviseSink
(
This
->
pITextStoreACP
,
&
IID_ITextStoreACPSink
,
(
IUnknown
*
)
This
->
pITextStoreACPSink
,
TS_AS_ALL_SINKS
);
if
(
SUCCEEDED
(
IUnknown_QueryInterface
(
punk
,
&
IID_ITextStoreACP
,
(
LPVOID
*
)
&
This
->
pITextStoreACP
)))
{
if
(
SUCCEEDED
(
TextStoreACPSink_Constructor
(
&
This
->
pITextStoreACPSink
,
This
)))
ITextStoreACP_AdviseSink
(
This
->
pITextStoreACP
,
&
IID_ITextStoreACPSink
,
(
IUnknown
*
)
This
->
pITextStoreACPSink
,
TS_AS_ALL_SINKS
);
}
IUnknown_QueryInterface
(
punk
,
&
IID_ITfContextOwnerCompositionSink
,
(
LPVOID
*
)
&
This
->
pITfContextOwnerCompositionSink
);
if
(
!
This
->
pITextStoreACP
&&
!
This
->
pITfContextOwnerCompositionSink
)
FIXME
(
"Unhandled pUnk
\n
"
);
}
else
if
(
punk
)
FIXME
(
"Unhandled pUnk
\n
"
);
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
ITfContext
*
)
This
;
...
...
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