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
d24e87fd
Commit
d24e87fd
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msimtf: Use an iface instead of a vtbl pointer in ActiveIMMApp.
parent
5c2cf086
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
activeimmapp.c
dlls/msimtf/activeimmapp.c
+10
-5
No files found.
dlls/msimtf/activeimmapp.c
View file @
d24e87fd
...
@@ -42,10 +42,15 @@
...
@@ -42,10 +42,15 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msimtf
);
WINE_DEFAULT_DEBUG_CHANNEL
(
msimtf
);
typedef
struct
tagActiveIMMApp
{
typedef
struct
tagActiveIMMApp
{
const
IActiveIMMAppVtbl
*
vtbl
;
IActiveIMMApp
IActiveIMMApp_iface
;
LONG
refCount
;
LONG
refCount
;
}
ActiveIMMApp
;
}
ActiveIMMApp
;
static
inline
ActiveIMMApp
*
impl_from_IActiveIMMApp
(
IActiveIMMApp
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ActiveIMMApp
,
IActiveIMMApp_iface
);
}
static
void
ActiveIMMApp_Destructor
(
ActiveIMMApp
*
This
)
static
void
ActiveIMMApp_Destructor
(
ActiveIMMApp
*
This
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
@@ -55,7 +60,7 @@ static void ActiveIMMApp_Destructor(ActiveIMMApp* This)
...
@@ -55,7 +60,7 @@ static void ActiveIMMApp_Destructor(ActiveIMMApp* This)
static
HRESULT
WINAPI
ActiveIMMApp_QueryInterface
(
IActiveIMMApp
*
iface
,
static
HRESULT
WINAPI
ActiveIMMApp_QueryInterface
(
IActiveIMMApp
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
REFIID
iid
,
LPVOID
*
ppvOut
)
{
{
ActiveIMMApp
*
This
=
(
ActiveIMMApp
*
)
iface
;
ActiveIMMApp
*
This
=
impl_from_IActiveIMMApp
(
iface
)
;
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_IActiveIMMApp
))
if
(
IsEqualIID
(
iid
,
&
IID_IUnknown
)
||
IsEqualIID
(
iid
,
&
IID_IActiveIMMApp
))
...
@@ -75,13 +80,13 @@ static HRESULT WINAPI ActiveIMMApp_QueryInterface (IActiveIMMApp* iface,
...
@@ -75,13 +80,13 @@ static HRESULT WINAPI ActiveIMMApp_QueryInterface (IActiveIMMApp* iface,
static
ULONG
WINAPI
ActiveIMMApp_AddRef
(
IActiveIMMApp
*
iface
)
static
ULONG
WINAPI
ActiveIMMApp_AddRef
(
IActiveIMMApp
*
iface
)
{
{
ActiveIMMApp
*
This
=
(
ActiveIMMApp
*
)
iface
;
ActiveIMMApp
*
This
=
impl_from_IActiveIMMApp
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
refCount
);
return
InterlockedIncrement
(
&
This
->
refCount
);
}
}
static
ULONG
WINAPI
ActiveIMMApp_Release
(
IActiveIMMApp
*
iface
)
static
ULONG
WINAPI
ActiveIMMApp_Release
(
IActiveIMMApp
*
iface
)
{
{
ActiveIMMApp
*
This
=
(
ActiveIMMApp
*
)
iface
;
ActiveIMMApp
*
This
=
impl_from_IActiveIMMApp
(
iface
)
;
ULONG
ret
;
ULONG
ret
;
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
ret
=
InterlockedDecrement
(
&
This
->
refCount
);
...
@@ -818,7 +823,7 @@ HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
...
@@ -818,7 +823,7 @@ HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
if
(
This
==
NULL
)
if
(
This
==
NULL
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
This
->
v
tbl
=
&
ActiveIMMAppVtbl
;
This
->
IActiveIMMApp_iface
.
lpV
tbl
=
&
ActiveIMMAppVtbl
;
This
->
refCount
=
1
;
This
->
refCount
=
1
;
TRACE
(
"returning %p
\n
"
,
This
);
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