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
936713fe
Commit
936713fe
authored
Jun 16, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Setup global CompartmentMgr.
parent
0baa711b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
msctf.c
dlls/msctf/msctf.c
+1
-0
msctf_internal.h
dlls/msctf/msctf_internal.h
+1
-0
threadmgr.c
dlls/msctf/threadmgr.c
+16
-2
No files found.
dlls/msctf/msctf.c
View file @
936713fe
...
...
@@ -74,6 +74,7 @@ static UINT activated = 0;
DWORD
tlsIndex
=
0
;
TfClientId
processId
=
0
;
ITfCompartmentMgr
*
globalCompartmentMgr
=
NULL
;
const
WCHAR
szwSystemTIPKey
[]
=
{
'S'
,
'O'
,
'F'
,
'T'
,
'W'
,
'A'
,
'R'
,
'E'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'C'
,
'T'
,
'F'
,
'\\'
,
'T'
,
'I'
,
'P'
,
0
};
...
...
dlls/msctf/msctf_internal.h
View file @
936713fe
...
...
@@ -29,6 +29,7 @@
extern
DWORD
tlsIndex
;
extern
TfClientId
processId
;
extern
ITfCompartmentMgr
*
globalCompartmentMgr
;
extern
HRESULT
ThreadMgr_Constructor
(
IUnknown
*
pUnkOuter
,
IUnknown
**
ppOut
);
extern
HRESULT
DocumentMgr_Constructor
(
ITfThreadMgrEventSink
*
,
ITfDocumentMgr
**
ppOut
);
...
...
dlls/msctf/threadmgr.c
View file @
936713fe
...
...
@@ -390,8 +390,22 @@ static HRESULT WINAPI ThreadMgr_GetGlobalCompartment( ITfThreadMgr* iface,
ITfCompartmentMgr
**
ppCompMgr
)
{
ThreadMgr
*
This
=
(
ThreadMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
HRESULT
hr
;
TRACE
(
"(%p) %p
\n
"
,
This
,
ppCompMgr
);
if
(
!
ppCompMgr
)
return
E_INVALIDARG
;
if
(
!
globalCompartmentMgr
)
{
hr
=
CompartmentMgr_Constructor
(
NULL
,
&
IID_ITfCompartmentMgr
,(
IUnknown
**
)
&
globalCompartmentMgr
);
if
(
FAILED
(
hr
))
return
hr
;
}
ITfCompartmentMgr_AddRef
(
globalCompartmentMgr
);
*
ppCompMgr
=
globalCompartmentMgr
;
return
S_OK
;
}
static
const
ITfThreadMgrVtbl
ThreadMgr_ThreadMgrVtbl
=
...
...
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