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
fd8c2a18
Commit
fd8c2a18
authored
Feb 02, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Feb 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Implement ITfDocumentMgr::Push.
parent
b712f39b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
documentmgr.c
dlls/msctf/documentmgr.c
+20
-2
msctf.idl
include/msctf.idl
+1
-0
No files found.
dlls/msctf/documentmgr.c
View file @
fd8c2a18
...
...
@@ -43,11 +43,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(msctf);
typedef
struct
tagDocumentMgr
{
const
ITfDocumentMgrVtbl
*
DocumentMgrVtbl
;
LONG
refCount
;
ITfContext
*
contextStack
[
2
];
/* limit of 2 contexts */
}
DocumentMgr
;
static
void
DocumentMgr_Destructor
(
DocumentMgr
*
This
)
{
TRACE
(
"destroying %p
\n
"
,
This
);
if
(
This
->
contextStack
[
0
])
ITfContext_Release
(
This
->
contextStack
[
0
]);
if
(
This
->
contextStack
[
1
])
ITfContext_Release
(
This
->
contextStack
[
1
]);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -104,8 +110,20 @@ static HRESULT WINAPI DocumentMgr_CreateContext(ITfDocumentMgr *iface,
static
HRESULT
WINAPI
DocumentMgr_Push
(
ITfDocumentMgr
*
iface
,
ITfContext
*
pic
)
{
DocumentMgr
*
This
=
(
DocumentMgr
*
)
iface
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
ITfContext
*
check
;
TRACE
(
"(%p) %p
\n
"
,
This
,
pic
);
if
(
This
->
contextStack
[
1
])
/* FUll */
return
TF_E_STACKFULL
;
if
(
!
pic
||
FAILED
(
IUnknown_QueryInterface
(
pic
,
&
IID_ITfContext
,(
LPVOID
*
)
&
check
)))
return
E_INVALIDARG
;
This
->
contextStack
[
1
]
=
This
->
contextStack
[
0
];
This
->
contextStack
[
0
]
=
check
;
return
S_OK
;
}
static
HRESULT
WINAPI
DocumentMgr_Pop
(
ITfDocumentMgr
*
iface
,
DWORD
dwFlags
)
...
...
include/msctf.idl
View file @
fd8c2a18
...
...
@@ -23,6 +23,7 @@ import "textstor.idl";
/*
import
"ctfutb.idl"
; */
#
endif
cpp_quote
(
"#define TF_E_STACKFULL MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0x0501)"
)
cpp_quote
(
"EXTERN_C const CLSID CLSID_TF_ThreadMgr;"
)
typedef
[
uuid
(
7213778
c
-
7b
b0
-
4270
-
b050
-
6189
ee594e97
)
]
DWORD
TfEditCookie
;
...
...
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