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
ba69aebd
Commit
ba69aebd
authored
Jun 22, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfCompartmentMgr::GetCompartment.
parent
3a18408d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
compartmentmgr.c
dlls/msctf/compartmentmgr.c
+33
-2
No files found.
dlls/msctf/compartmentmgr.c
View file @
ba69aebd
...
...
@@ -153,8 +153,39 @@ static HRESULT WINAPI CompartmentMgr_GetCompartment(ITfCompartmentMgr *iface,
REFGUID
rguid
,
ITfCompartment
**
ppcomp
)
{
CompartmentMgr
*
This
=
(
CompartmentMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
CompartmentValue
*
value
;
struct
list
*
cursor
;
HRESULT
hr
;
TRACE
(
"(%p) %s %p
\n
"
,
This
,
debugstr_guid
(
rguid
),
ppcomp
);
LIST_FOR_EACH
(
cursor
,
&
This
->
values
)
{
value
=
LIST_ENTRY
(
cursor
,
CompartmentValue
,
entry
);
if
(
IsEqualGUID
(
rguid
,
&
value
->
guid
))
{
ITfCompartment_AddRef
(
value
->
compartment
);
*
ppcomp
=
value
->
compartment
;
return
S_OK
;
}
}
value
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
CompartmentValue
));
value
->
guid
=
*
rguid
;
value
->
owner
=
0
;
hr
=
Compartment_Constructor
(
value
,
&
value
->
compartment
);
if
(
SUCCEEDED
(
hr
))
{
list_add_head
(
&
This
->
values
,
&
value
->
entry
);
ITfCompartment_AddRef
(
value
->
compartment
);
*
ppcomp
=
value
->
compartment
;
}
else
{
HeapFree
(
GetProcessHeap
(),
0
,
value
);
*
ppcomp
=
NULL
;
}
return
hr
;
}
static
HRESULT
WINAPI
CompartmentMgr_ClearCompartment
(
ITfCompartmentMgr
*
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