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
f2b29ecf
Commit
f2b29ecf
authored
Nov 19, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Fix some interface casts left from cleanup.
parent
b6efcef7
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
47 deletions
+42
-47
categorymgr.c
dlls/msctf/categorymgr.c
+5
-6
compartmentmgr.c
dlls/msctf/compartmentmgr.c
+7
-7
context.c
dlls/msctf/context.c
+4
-4
displayattributemgr.c
dlls/msctf/displayattributemgr.c
+4
-5
documentmgr.c
dlls/msctf/documentmgr.c
+13
-16
inputprocessor.c
dlls/msctf/inputprocessor.c
+6
-6
langbarmgr.c
dlls/msctf/langbarmgr.c
+2
-2
range.c
dlls/msctf/range.c
+1
-1
No files found.
dlls/msctf/categorymgr.c
View file @
f2b29ecf
...
...
@@ -63,7 +63,7 @@ static HRESULT WINAPI CategoryMgr_QueryInterface(ITfCategoryMgr *iface, REFIID i
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_ITfCategoryMgr
))
{
*
ppvOut
=
This
;
*
ppvOut
=
&
This
->
ITfCategoryMgr_iface
;
}
if
(
*
ppvOut
)
...
...
@@ -391,12 +391,11 @@ static HRESULT WINAPI CategoryMgr_IsEqualTfGuidAtom ( ITfCategoryMgr *iface,
}
static
const
ITfCategoryMgrVtbl
CategoryMgr
_CategoryMgr
Vtbl
=
static
const
ITfCategoryMgrVtbl
CategoryMgrVtbl
=
{
CategoryMgr_QueryInterface
,
CategoryMgr_AddRef
,
CategoryMgr_Release
,
CategoryMgr_RegisterCategory
,
CategoryMgr_UnregisterCategory
,
CategoryMgr_EnumCategoriesInItem
,
...
...
@@ -423,10 +422,10 @@ HRESULT CategoryMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
ITfCategoryMgr_iface
.
lpVtbl
=
&
CategoryMgr
_CategoryMgr
Vtbl
;
This
->
ITfCategoryMgr_iface
.
lpVtbl
=
&
CategoryMgrVtbl
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IUnknown
*
)
This
;
*
ppOut
=
(
IUnknown
*
)
&
This
->
ITfCategoryMgr_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
dlls/msctf/compartmentmgr.c
View file @
f2b29ecf
...
...
@@ -141,7 +141,7 @@ static HRESULT WINAPI CompartmentMgr_QueryInterface(ITfCompartmentMgr *iface, RE
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_ITfCompartmentMgr
))
{
*
ppvOut
=
This
;
*
ppvOut
=
&
This
->
ITfCompartmentMgr_iface
;
}
if
(
*
ppvOut
)
...
...
@@ -285,8 +285,8 @@ HRESULT CompartmentMgr_Constructor(IUnknown *pUnkOuter, REFIID riid, IUnknown **
if
(
pUnkOuter
)
{
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IUnknown
*
)
This
;
*
ppOut
=
(
IUnknown
*
)
&
This
->
ITfCompartmentMgr_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
else
...
...
@@ -436,8 +436,8 @@ static HRESULT CompartmentEnumGuid_Constructor(struct list *values, IEnumGUID **
This
->
values
=
values
;
This
->
cursor
=
list_head
(
values
);
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IEnumGUID
*
)
This
;
*
ppOut
=
&
This
->
IEnumGUID_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
...
...
@@ -670,7 +670,7 @@ static HRESULT Compartment_Constructor(CompartmentValue *valueData, ITfCompartme
list_init
(
&
This
->
CompartmentEventSink
);
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
ITfCompartment
*
)
This
;
*
ppOut
=
&
This
->
ITfCompartment_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
dlls/msctf/context.c
View file @
f2b29ecf
...
...
@@ -722,7 +722,7 @@ static HRESULT WINAPI InsertAtSelection_InsertTextAtSelection(
hr
=
ITextStoreACP_InsertTextAtSelection
(
This
->
pITextStoreACP
,
dwFlags
,
pchText
,
cch
,
&
acpStart
,
&
acpEnd
,
&
change
);
if
(
SUCCEEDED
(
hr
))
Range_Constructor
(
(
ITfContext
*
)
This
,
This
->
pITextStoreACP
,
cookie
->
lockType
,
change
.
acpStart
,
change
.
acpNewEnd
,
ppRange
);
Range_Constructor
(
&
This
->
ITfContext_iface
,
This
->
pITextStoreACP
,
cookie
->
lockType
,
change
.
acpStart
,
change
.
acpNewEnd
,
ppRange
);
return
hr
;
}
...
...
@@ -844,8 +844,8 @@ HRESULT Context_Constructor(TfClientId tidOwner, IUnknown *punk, ITfDocumentMgr
list_init
(
&
This
->
pTextEditSink
);
list_init
(
&
This
->
pTextLayoutSink
);
*
ppOut
=
(
ITfContext
*
)
This
;
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
&
This
->
ITfContext_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
);
return
S_OK
;
}
...
...
@@ -1101,7 +1101,7 @@ static HRESULT TextStoreACPSink_Constructor(ITextStoreACPSink **ppOut, Context *
This
->
pContext
=
pContext
;
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
&
This
->
ITextStoreACPSink_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
);
return
S_OK
;
}
dlls/msctf/displayattributemgr.c
View file @
f2b29ecf
...
...
@@ -114,12 +114,11 @@ static HRESULT WINAPI DisplayAttributeMgr_GetDisplayAttributeInfo(ITfDisplayAttr
return
E_NOTIMPL
;
}
static
const
ITfDisplayAttributeMgrVtbl
DisplayAttributeMgr
_DisplayAttributeMgr
Vtbl
=
static
const
ITfDisplayAttributeMgrVtbl
DisplayAttributeMgrVtbl
=
{
DisplayAttributeMgr_QueryInterface
,
DisplayAttributeMgr_AddRef
,
DisplayAttributeMgr_Release
,
DisplayAttributeMgr_OnUpdateInfo
,
DisplayAttributeMgr_EnumDisplayAttributeInfo
,
DisplayAttributeMgr_GetDisplayAttributeInfo
...
...
@@ -135,10 +134,10 @@ HRESULT DisplayAttributeMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
ITfDisplayAttributeMgr_iface
.
lpVtbl
=
&
DisplayAttributeMgr
_DisplayAttributeMgr
Vtbl
;
This
->
ITfDisplayAttributeMgr_iface
.
lpVtbl
=
&
DisplayAttributeMgrVtbl
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IUnknown
*
)
This
;
*
ppOut
=
(
IUnknown
*
)
&
This
->
ITfDisplayAttributeMgr_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
dlls/msctf/documentmgr.c
View file @
f2b29ecf
...
...
@@ -262,12 +262,11 @@ static HRESULT WINAPI DocumentMgr_EnumContexts(ITfDocumentMgr *iface, IEnumTfCon
return
EnumTfContext_Constructor
(
This
,
ppEnum
);
}
static
const
ITfDocumentMgrVtbl
DocumentMgr
_DocumentMgr
Vtbl
=
static
const
ITfDocumentMgrVtbl
DocumentMgrVtbl
=
{
DocumentMgr_QueryInterface
,
DocumentMgr_AddRef
,
DocumentMgr_Release
,
DocumentMgr_CreateContext
,
DocumentMgr_Push
,
DocumentMgr_Pop
,
...
...
@@ -276,20 +275,19 @@ static const ITfDocumentMgrVtbl DocumentMgr_DocumentMgrVtbl =
DocumentMgr_EnumContexts
};
static
HRESULT
WINAPI
Source_QueryInterface
(
ITfSource
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
static
HRESULT
WINAPI
DocumentMgrSource_QueryInterface
(
ITfSource
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
DocumentMgr
*
This
=
impl_from_ITfSource
(
iface
);
return
ITfDocumentMgr_QueryInterface
(
&
This
->
ITfDocumentMgr_iface
,
iid
,
ppvOut
);
}
static
ULONG
WINAPI
Source_AddRef
(
ITfSource
*
iface
)
static
ULONG
WINAPI
DocumentMgr
Source_AddRef
(
ITfSource
*
iface
)
{
DocumentMgr
*
This
=
impl_from_ITfSource
(
iface
);
return
ITfDocumentMgr_AddRef
(
&
This
->
ITfDocumentMgr_iface
);
}
static
ULONG
WINAPI
Source_Release
(
ITfSource
*
iface
)
static
ULONG
WINAPI
DocumentMgr
Source_Release
(
ITfSource
*
iface
)
{
DocumentMgr
*
This
=
impl_from_ITfSource
(
iface
);
return
ITfDocumentMgr_Release
(
&
This
->
ITfDocumentMgr_iface
);
...
...
@@ -313,12 +311,11 @@ static HRESULT WINAPI DocumentMgrSource_UnadviseSink(ITfSource *iface, DWORD pdw
return
E_NOTIMPL
;
}
static
const
ITfSourceVtbl
DocumentMgr
_
SourceVtbl
=
static
const
ITfSourceVtbl
DocumentMgrSourceVtbl
=
{
Source_QueryInterface
,
Source_AddRef
,
Source_Release
,
DocumentMgrSource_QueryInterface
,
DocumentMgrSource_AddRef
,
DocumentMgrSource_Release
,
DocumentMgrSource_AdviseSink
,
DocumentMgrSource_UnadviseSink
,
};
...
...
@@ -331,15 +328,15 @@ HRESULT DocumentMgr_Constructor(ITfThreadMgrEventSink *ThreadMgrSink, ITfDocumen
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
ITfDocumentMgr_iface
.
lpVtbl
=
&
DocumentMgr
_DocumentMgr
Vtbl
;
This
->
ITfSource_iface
.
lpVtbl
=
&
DocumentMgr
_
SourceVtbl
;
This
->
ITfDocumentMgr_iface
.
lpVtbl
=
&
DocumentMgrVtbl
;
This
->
ITfSource_iface
.
lpVtbl
=
&
DocumentMgrSourceVtbl
;
This
->
refCount
=
1
;
This
->
ThreadMgrSink
=
ThreadMgrSink
;
CompartmentMgr_Constructor
((
IUnknown
*
)
This
,
&
IID_IUnknown
,
(
IUnknown
**
)
&
This
->
CompartmentMgr
);
CompartmentMgr_Constructor
((
IUnknown
*
)
&
This
->
ITfDocumentMgr_iface
,
&
IID_IUnknown
,
(
IUnknown
**
)
&
This
->
CompartmentMgr
);
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
&
This
->
ITfDocumentMgr_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
);
return
S_OK
;
}
...
...
@@ -477,7 +474,7 @@ static HRESULT EnumTfContext_Constructor(DocumentMgr *mgr, IEnumTfContexts **ppO
This
->
refCount
=
1
;
This
->
docmgr
=
mgr
;
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
&
This
->
IEnumTfContexts_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
);
return
S_OK
;
}
dlls/msctf/inputprocessor.c
View file @
f2b29ecf
...
...
@@ -787,8 +787,8 @@ HRESULT InputProcessorProfiles_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut
list_init
(
&
This
->
LanguageProfileNotifySink
);
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IUnknown
*
)
This
;
*
ppOut
=
(
IUnknown
*
)
&
This
->
ITfInputProcessorProfiles_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
...
...
@@ -940,8 +940,8 @@ static HRESULT ProfilesEnumGuid_Constructor(IEnumGUID **ppOut)
return
E_FAIL
;
}
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IEnumGUID
*
)
This
;
*
ppOut
=
&
This
->
IEnumGUID_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
...
...
@@ -1181,7 +1181,7 @@ static HRESULT EnumTfLanguageProfiles_Constructor(LANGID langid, IEnumTfLanguage
return
E_FAIL
;
}
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IEnumTfLanguageProfiles
*
)
This
;
*
ppOut
=
&
This
->
IEnumTfLanguageProfiles_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
dlls/msctf/langbarmgr.c
View file @
f2b29ecf
...
...
@@ -192,7 +192,7 @@ HRESULT LangBarMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
This
->
ITfLangBarMgr_iface
.
lpVtbl
=
&
LangBarMgr_LangBarMgrVtbl
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
)
;
*
ppOut
=
(
IUnknown
*
)
This
;
*
ppOut
=
(
IUnknown
*
)
&
This
->
ITfLangBarMgr_iface
;
TRACE
(
"returning %p
\n
"
,
*
ppOut
)
;
return
S_OK
;
}
dlls/msctf/range.c
View file @
f2b29ecf
...
...
@@ -345,7 +345,7 @@ HRESULT Range_Constructor(ITfContext *context, ITextStoreACP *textstore, DWORD l
This
->
anchorEnd
=
anchorEnd
;
*
ppOut
=
&
This
->
ITfRange_iface
;
TRACE
(
"returning %p
\n
"
,
This
);
TRACE
(
"returning %p
\n
"
,
*
ppOut
);
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