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
242bd9e4
Commit
242bd9e4
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msctf: Use an iface instead of a vtbl pointer in DisplayAttributeMgr.
parent
adfc4572
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
displayattributemgr.c
dlls/msctf/displayattributemgr.c
+13
-8
No files found.
dlls/msctf/displayattributemgr.c
View file @
242bd9e4
...
...
@@ -31,12 +31,17 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msctf
);
typedef
struct
tagDisplayAttributeMgr
{
const
ITfDisplayAttributeMgrVtbl
*
DisplayAttributeMgrVtbl
;
ITfDisplayAttributeMgr
ITfDisplayAttributeMgr_iface
;
LONG
refCount
;
}
DisplayAttributeMgr
;
static
inline
DisplayAttributeMgr
*
impl_from_ITfDisplayAttributeMgr
(
ITfDisplayAttributeMgr
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
DisplayAttributeMgr
,
ITfDisplayAttributeMgr_iface
);
}
static
void
DisplayAttributeMgr_Destructor
(
DisplayAttributeMgr
*
This
)
{
TRACE
(
"destroying %p
\n
"
,
This
);
...
...
@@ -46,7 +51,7 @@ static void DisplayAttributeMgr_Destructor(DisplayAttributeMgr *This)
static
HRESULT
WINAPI
DisplayAttributeMgr_QueryInterface
(
ITfDisplayAttributeMgr
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
{
DisplayAttributeMgr
*
This
=
(
DisplayAttributeMgr
*
)
iface
;
DisplayAttributeMgr
*
This
=
impl_from_ITfDisplayAttributeMgr
(
iface
)
;
*
ppvOut
=
NULL
;
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_ITfDisplayAttributeMgr
))
...
...
@@ -66,13 +71,13 @@ static HRESULT WINAPI DisplayAttributeMgr_QueryInterface(ITfDisplayAttributeMgr
static
ULONG
WINAPI
DisplayAttributeMgr_AddRef
(
ITfDisplayAttributeMgr
*
iface
)
{
DisplayAttributeMgr
*
This
=
(
DisplayAttributeMgr
*
)
iface
;
DisplayAttributeMgr
*
This
=
impl_from_ITfDisplayAttributeMgr
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refCount
);
}
static
ULONG
WINAPI
DisplayAttributeMgr_Release
(
ITfDisplayAttributeMgr
*
iface
)
{
DisplayAttributeMgr
*
This
=
(
DisplayAttributeMgr
*
)
iface
;
DisplayAttributeMgr
*
This
=
impl_from_ITfDisplayAttributeMgr
(
iface
)
;
ULONG
ret
;
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
...
...
@@ -87,7 +92,7 @@ static ULONG WINAPI DisplayAttributeMgr_Release(ITfDisplayAttributeMgr *iface)
static
HRESULT
WINAPI
DisplayAttributeMgr_OnUpdateInfo
(
ITfDisplayAttributeMgr
*
iface
)
{
DisplayAttributeMgr
*
This
=
(
DisplayAttributeMgr
*
)
iface
;
DisplayAttributeMgr
*
This
=
impl_from_ITfDisplayAttributeMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
...
...
@@ -95,7 +100,7 @@ static HRESULT WINAPI DisplayAttributeMgr_OnUpdateInfo(ITfDisplayAttributeMgr *i
static
HRESULT
WINAPI
DisplayAttributeMgr_EnumDisplayAttributeInfo
(
ITfDisplayAttributeMgr
*
iface
,
IEnumTfDisplayAttributeInfo
**
ppEnum
)
{
DisplayAttributeMgr
*
This
=
(
DisplayAttributeMgr
*
)
iface
;
DisplayAttributeMgr
*
This
=
impl_from_ITfDisplayAttributeMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
...
...
@@ -103,7 +108,7 @@ static HRESULT WINAPI DisplayAttributeMgr_EnumDisplayAttributeInfo(ITfDisplayAtt
static
HRESULT
WINAPI
DisplayAttributeMgr_GetDisplayAttributeInfo
(
ITfDisplayAttributeMgr
*
iface
,
REFGUID
guid
,
ITfDisplayAttributeInfo
**
ppInfo
,
CLSID
*
pclsidOwner
)
{
DisplayAttributeMgr
*
This
=
(
DisplayAttributeMgr
*
)
iface
;
DisplayAttributeMgr
*
This
=
impl_from_ITfDisplayAttributeMgr
(
iface
)
;
FIXME
(
"STUB:(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
...
...
@@ -130,7 +135,7 @@ HRESULT DisplayAttributeMgr_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
This
->
DisplayAttributeMgrVtbl
=
&
DisplayAttributeMgr_DisplayAttributeMgrVtbl
;
This
->
ITfDisplayAttributeMgr_iface
.
lpVtbl
=
&
DisplayAttributeMgr_DisplayAttributeMgrVtbl
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
);
...
...
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