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
e73b17d0
Commit
e73b17d0
authored
Jun 24, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Context initialization happens before OnPushContext sink.
parent
2dd5a3be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
documentmgr.c
dlls/msctf/documentmgr.c
+1
-1
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+14
-0
No files found.
dlls/msctf/documentmgr.c
View file @
e73b17d0
...
...
@@ -145,8 +145,8 @@ static HRESULT WINAPI DocumentMgr_Push(ITfDocumentMgr *iface, ITfContext *pic)
This
->
contextStack
[
1
]
=
This
->
contextStack
[
0
];
This
->
contextStack
[
0
]
=
check
;
ITfThreadMgrEventSink_OnPushContext
(
This
->
ThreadMgrSink
,
check
);
Context_Initialize
(
check
,
iface
);
ITfThreadMgrEventSink_OnPushContext
(
This
->
ThreadMgrSink
,
check
);
return
S_OK
;
}
...
...
dlls/msctf/tests/inputprocessor.c
View file @
e73b17d0
...
...
@@ -439,6 +439,20 @@ ITfDocumentMgr *pdimFocus, ITfDocumentMgr *pdimPrevFocus)
static
HRESULT
WINAPI
ThreadMgrEventSink_OnPushContext
(
ITfThreadMgrEventSink
*
iface
,
ITfContext
*
pic
)
{
HRESULT
hr
;
ITfDocumentMgr
*
docmgr
;
ITfContext
*
test
;
hr
=
ITfContext_GetDocumentMgr
(
pic
,
&
docmgr
);
ok
(
SUCCEEDED
(
hr
),
"GetDocumenMgr failed
\n
"
);
test
=
(
ITfContext
*
)
0xdeadbeef
;
ITfDocumentMgr_Release
(
docmgr
);
hr
=
ITfDocumentMgr_GetTop
(
docmgr
,
&
test
);
ok
(
SUCCEEDED
(
hr
),
"GetTop failed
\n
"
);
ok
(
test
==
pic
,
"Wrong context is on top
\n
"
);
if
(
test
)
ITfContext_Release
(
test
);
ok
(
test_OnPushContext
==
SINK_EXPECTED
,
"Unexpected OnPushContext sink
\n
"
);
test_OnPushContext
=
SINK_FIRED
;
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