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
1ffa3515
Commit
1ffa3515
authored
Jun 11, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Add ITfComponentMgr to documentmgr.
parent
819518c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
documentmgr.c
dlls/msctf/documentmgr.c
+10
-0
No files found.
dlls/msctf/documentmgr.c
View file @
1ffa3515
...
...
@@ -45,6 +45,9 @@ typedef struct tagDocumentMgr {
const
ITfSourceVtbl
*
SourceVtbl
;
LONG
refCount
;
/* Aggregation */
ITfCompartmentMgr
*
CompartmentMgr
;
ITfContext
*
contextStack
[
2
];
/* limit of 2 contexts */
ITfThreadMgrEventSink
*
ThreadMgrSink
;
}
DocumentMgr
;
...
...
@@ -61,6 +64,7 @@ static void DocumentMgr_Destructor(DocumentMgr *This)
ITfContext_Release
(
This
->
contextStack
[
0
]);
if
(
This
->
contextStack
[
1
])
ITfContext_Release
(
This
->
contextStack
[
1
]);
CompartmentMgr_Destructor
(
This
->
CompartmentMgr
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -77,6 +81,10 @@ static HRESULT WINAPI DocumentMgr_QueryInterface(ITfDocumentMgr *iface, REFIID i
{
*
ppvOut
=
&
This
->
SourceVtbl
;
}
else
if
(
IsEqualIID
(
iid
,
&
IID_ITfCompartmentMgr
))
{
*
ppvOut
=
This
->
CompartmentMgr
;
}
if
(
*
ppvOut
)
{
...
...
@@ -303,6 +311,8 @@ HRESULT DocumentMgr_Constructor(ITfThreadMgrEventSink *ThreadMgrSink, ITfDocumen
This
->
refCount
=
1
;
This
->
ThreadMgrSink
=
ThreadMgrSink
;
CompartmentMgr_Constructor
((
IUnknown
*
)
This
,
&
IID_IUnknown
,
(
IUnknown
**
)
&
This
->
CompartmentMgr
);
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
ITfDocumentMgr
*
)
This
;
return
S_OK
;
...
...
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