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
955e27d0
Commit
955e27d0
authored
Aug 19, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Call interface methods properly.
parent
de37c1d5
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
29 additions
and
29 deletions
+29
-29
categorymgr.c
dlls/msctf/categorymgr.c
+1
-1
compartmentmgr.c
dlls/msctf/compartmentmgr.c
+3
-3
context.c
dlls/msctf/context.c
+4
-4
displayattributemgr.c
dlls/msctf/displayattributemgr.c
+1
-1
documentmgr.c
dlls/msctf/documentmgr.c
+3
-3
inputprocessor.c
dlls/msctf/inputprocessor.c
+3
-3
langbarmgr.c
dlls/msctf/langbarmgr.c
+1
-1
range.c
dlls/msctf/range.c
+1
-1
inputprocessor.c
dlls/msctf/tests/inputprocessor.c
+8
-8
threadmgr.c
dlls/msctf/threadmgr.c
+4
-4
No files found.
dlls/msctf/categorymgr.c
View file @
955e27d0
...
...
@@ -68,7 +68,7 @@ static HRESULT WINAPI CategoryMgr_QueryInterface(ITfCategoryMgr *iface, REFIID i
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfCategoryMgr
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/compartmentmgr.c
View file @
955e27d0
...
...
@@ -131,7 +131,7 @@ static HRESULT WINAPI CompartmentMgr_QueryInterface(ITfCompartmentMgr *iface, RE
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfCompartmentMgr
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -304,7 +304,7 @@ static HRESULT WINAPI CompartmentEnumGuid_QueryInterface(IEnumGUID *iface, REFII
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
EnumGUID
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -464,7 +464,7 @@ static HRESULT WINAPI Compartment_QueryInterface(ITfCompartment *iface, REFIID i
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfCompartment
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/context.c
View file @
955e27d0
...
...
@@ -141,10 +141,10 @@ static void Context_Destructor(Context *This)
}
if
(
This
->
pITextStoreACP
)
ITextStoreACP
Sink
_Release
(
This
->
pITextStoreACP
);
ITextStoreACP_Release
(
This
->
pITextStoreACP
);
if
(
This
->
pITfContextOwnerCompositionSink
)
IT
extStoreACP
Sink_Release
(
This
->
pITfContextOwnerCompositionSink
);
IT
fContextOwnerComposition
Sink_Release
(
This
->
pITfContextOwnerCompositionSink
);
if
(
This
->
defaultCookie
)
{
...
...
@@ -216,7 +216,7 @@ static HRESULT WINAPI Context_QueryInterface(ITfContext *iface, REFIID iid, LPVO
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfContext
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -896,7 +896,7 @@ static HRESULT WINAPI TextStoreACPSink_QueryInterface(ITextStoreACPSink *iface,
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TextStoreACPSink
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/displayattributemgr.c
View file @
955e27d0
...
...
@@ -61,7 +61,7 @@ static HRESULT WINAPI DisplayAttributeMgr_QueryInterface(ITfDisplayAttributeMgr
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfDisplayAttributeMgr
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/documentmgr.c
View file @
955e27d0
...
...
@@ -113,7 +113,7 @@ static HRESULT WINAPI DocumentMgr_QueryInterface(ITfDocumentMgr *iface, REFIID i
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfDocumentMgr
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -161,7 +161,7 @@ static HRESULT WINAPI DocumentMgr_Push(ITfDocumentMgr *iface, ITfContext *pic)
if
(
This
->
contextStack
[
1
])
/* FUll */
return
TF_E_STACKFULL
;
if
(
!
pic
||
FAILED
(
I
Unknown
_QueryInterface
(
pic
,
&
IID_ITfContext
,(
LPVOID
*
)
&
check
)))
if
(
!
pic
||
FAILED
(
I
TfContext
_QueryInterface
(
pic
,
&
IID_ITfContext
,(
LPVOID
*
)
&
check
)))
return
E_INVALIDARG
;
if
(
This
->
contextStack
[
0
]
==
NULL
)
...
...
@@ -364,7 +364,7 @@ static HRESULT WINAPI EnumTfContext_QueryInterface(IEnumTfContexts *iface, REFII
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
EnumTfContexts
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/inputprocessor.c
View file @
955e27d0
...
...
@@ -172,7 +172,7 @@ static HRESULT WINAPI InputProcessorProfiles_QueryInterface(ITfInputProcessorPro
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfInputProcessorProfiles
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -803,7 +803,7 @@ static HRESULT WINAPI ProfilesEnumGuid_QueryInterface(IEnumGUID *iface, REFIID i
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
EnumGUID
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -959,7 +959,7 @@ static HRESULT WINAPI EnumTfLanguageProfiles_QueryInterface(IEnumTfLanguageProfi
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
EnumTfLanguageProfiles
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/langbarmgr.c
View file @
955e27d0
...
...
@@ -61,7 +61,7 @@ static HRESULT WINAPI LangBarMgr_QueryInterface(ITfLangBarMgr *iface, REFIID iid
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfLangBarMgr
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/range.c
View file @
955e27d0
...
...
@@ -77,7 +77,7 @@ static HRESULT WINAPI Range_QueryInterface(ITfRange *iface, REFIID iid, LPVOID *
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfRange
_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/tests/inputprocessor.c
View file @
955e27d0
...
...
@@ -203,7 +203,7 @@ static HRESULT WINAPI TextStoreACP_QueryInterface(ITextStoreACP *iface, REFIID i
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TextStoreACP
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -492,7 +492,7 @@ static HRESULT WINAPI ThreadMgrEventSink_QueryInterface(ITfThreadMgrEventSink *i
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfThreadMgrEventSink
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -752,7 +752,7 @@ static HRESULT WINAPI TextService_QueryInterface(ITfTextInputProcessor *iface, R
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfTextInputProcessor
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -1079,7 +1079,7 @@ static HRESULT WINAPI KeyEventSink_QueryInterface(ITfKeyEventSink *iface, REFIID
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfKeyEventSink
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -1305,8 +1305,8 @@ static void test_EnumDocumentMgr(ITfThreadMgr *tm, ITfDocumentMgr *search, ITfDo
static
inline
int
check_context_refcount
(
ITfContext
*
iface
)
{
I
Unknown
_AddRef
(
iface
);
return
I
Unknown
_Release
(
iface
);
I
TfContext
_AddRef
(
iface
);
return
I
TfContext
_Release
(
iface
);
}
...
...
@@ -1341,7 +1341,7 @@ static HRESULT WINAPI TextEditSink_QueryInterface(ITfTextEditSink *iface, REFIID
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfTextEditSink
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -1697,7 +1697,7 @@ static HRESULT WINAPI EditSession_QueryInterface(ITfEditSession *iface, REFIID i
if
(
*
ppvOut
)
{
I
Unknow
n_AddRef
(
iface
);
I
TfEditSessio
n_AddRef
(
iface
);
return
S_OK
;
}
...
...
dlls/msctf/threadmgr.c
View file @
955e27d0
...
...
@@ -279,7 +279,7 @@ static HRESULT WINAPI ThreadMgr_QueryInterface(ITfThreadMgr *iface, REFIID iid,
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
TfThreadMgr
_AddRef
(
iface
);
return
S_OK
;
}
...
...
@@ -422,7 +422,7 @@ static HRESULT WINAPI ThreadMgr_SetFocus( ITfThreadMgr* iface, ITfDocumentMgr *p
if
(
!
pdimFocus
)
check
=
NULL
;
else
if
(
FAILED
(
I
Unknown
_QueryInterface
(
pdimFocus
,
&
IID_ITfDocumentMgr
,(
LPVOID
*
)
&
check
)))
else
if
(
FAILED
(
I
TfDocumentMgr
_QueryInterface
(
pdimFocus
,
&
IID_ITfDocumentMgr
,(
LPVOID
*
)
&
check
)))
return
E_INVALIDARG
;
ITfThreadMgrEventSink_OnSetFocus
((
ITfThreadMgrEventSink
*
)
&
This
->
ThreadMgrEventSinkVtbl
,
check
,
This
->
focus
);
...
...
@@ -724,7 +724,7 @@ static HRESULT WINAPI KeystrokeMgr_AdviseKeyEventSink(ITfKeystrokeMgr *iface,
if
(
check
!=
NULL
)
return
CONNECT_E_ADVISELIMIT
;
if
(
FAILED
(
I
Unknown
_QueryInterface
(
pSink
,
&
IID_ITfKeyEventSink
,(
LPVOID
*
)
&
check
)))
if
(
FAILED
(
I
TfKeyEventSink
_QueryInterface
(
pSink
,
&
IID_ITfKeyEventSink
,(
LPVOID
*
)
&
check
)))
return
E_INVALIDARG
;
set_textservice_sink
(
tid
,
&
IID_ITfKeyEventSink
,
(
IUnknown
*
)
check
);
...
...
@@ -1333,7 +1333,7 @@ static HRESULT WINAPI EnumTfDocumentMgr_QueryInterface(IEnumTfDocumentMgrs *ifac
if
(
*
ppvOut
)
{
I
Unknown
_AddRef
(
iface
);
I
EnumTfDocumentMgrs
_AddRef
(
iface
);
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