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
38b4a4d7
Commit
38b4a4d7
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
infosoft: Use an iface instead of a vtbl pointer in wordbreaker_impl.
parent
965aea8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
wordbreaker.c
dlls/infosoft/wordbreaker.c
+11
-6
No files found.
dlls/infosoft/wordbreaker.c
View file @
38b4a4d7
...
...
@@ -36,14 +36,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(infosoft);
typedef
struct
tag_wordbreaker_impl
{
const
IWordBreakerVtbl
*
lpVtbl
;
IWordBreaker
IWordBreaker_iface
;
LONG
ref
;
}
wordbreaker_impl
;
static
inline
wordbreaker_impl
*
impl_from_IWordBreaker
(
IWordBreaker
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
wordbreaker_impl
,
IWordBreaker_iface
);
}
static
HRESULT
WINAPI
wb_QueryInterface
(
IWordBreaker
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
{
wordbreaker_impl
*
This
=
(
wordbreaker_impl
*
)
iface
;
wordbreaker_impl
*
This
=
impl_from_IWordBreaker
(
iface
)
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_guid
(
riid
));
...
...
@@ -62,13 +67,13 @@ static HRESULT WINAPI wb_QueryInterface( IWordBreaker *iface,
static
ULONG
WINAPI
wb_AddRef
(
IWordBreaker
*
iface
)
{
wordbreaker_impl
*
This
=
(
wordbreaker_impl
*
)
iface
;
wordbreaker_impl
*
This
=
impl_from_IWordBreaker
(
iface
)
;
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
wb_Release
(
IWordBreaker
*
iface
)
{
wordbreaker_impl
*
This
=
(
wordbreaker_impl
*
)
iface
;
wordbreaker_impl
*
This
=
impl_from_IWordBreaker
(
iface
)
;
LONG
refcount
;
refcount
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -190,9 +195,9 @@ HRESULT WINAPI wb_Constructor(IUnknown* pUnkOuter, REFIID riid, LPVOID *ppvObjec
return
E_OUTOFMEMORY
;
This
->
ref
=
1
;
This
->
lpVtbl
=
&
wordbreaker_vtbl
;
This
->
IWordBreaker_iface
.
lpVtbl
=
&
wordbreaker_vtbl
;
wb
=
(
IWordBreaker
*
)
This
;
wb
=
&
This
->
IWordBreaker_iface
;
return
IWordBreaker_QueryInterface
(
wb
,
riid
,
ppvObject
);
}
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