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
f3810015
Commit
f3810015
authored
Dec 04, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Use an iface instead of a vtbl pointer in EnumOleSTATDATA.
parent
740a850a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
oleobj.c
dlls/ole32/oleobj.c
+14
-9
No files found.
dlls/ole32/oleobj.c
View file @
f3810015
...
...
@@ -56,13 +56,18 @@ static HRESULT EnumOleSTATDATA_Construct(OleAdviseHolderImpl *pOleAdviseHolder,
typedef
struct
{
const
IEnumSTATDATAVtbl
*
lpvtbl
;
IEnumSTATDATA
IEnumSTATDATA_iface
;
LONG
ref
;
ULONG
index
;
OleAdviseHolderImpl
*
pOleAdviseHolder
;
}
EnumOleSTATDATA
;
static
inline
EnumOleSTATDATA
*
impl_from_IEnumSTATDATA
(
IEnumSTATDATA
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
EnumOleSTATDATA
,
IEnumSTATDATA_iface
);
}
static
HRESULT
WINAPI
EnumOleSTATDATA_QueryInterface
(
IEnumSTATDATA
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -80,7 +85,7 @@ static HRESULT WINAPI EnumOleSTATDATA_QueryInterface(
static
ULONG
WINAPI
EnumOleSTATDATA_AddRef
(
IEnumSTATDATA
*
iface
)
{
EnumOleSTATDATA
*
This
=
(
EnumOleSTATDATA
*
)
iface
;
EnumOleSTATDATA
*
This
=
impl_from_IEnumSTATDATA
(
iface
)
;
TRACE
(
"()
\n
"
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
...
...
@@ -88,7 +93,7 @@ static ULONG WINAPI EnumOleSTATDATA_AddRef(
static
ULONG
WINAPI
EnumOleSTATDATA_Release
(
IEnumSTATDATA
*
iface
)
{
EnumOleSTATDATA
*
This
=
(
EnumOleSTATDATA
*
)
iface
;
EnumOleSTATDATA
*
This
=
impl_from_IEnumSTATDATA
(
iface
)
;
LONG
refs
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"()
\n
"
);
if
(
!
refs
)
...
...
@@ -103,7 +108,7 @@ static HRESULT WINAPI EnumOleSTATDATA_Next(
IEnumSTATDATA
*
iface
,
ULONG
celt
,
LPSTATDATA
rgelt
,
ULONG
*
pceltFetched
)
{
EnumOleSTATDATA
*
This
=
(
EnumOleSTATDATA
*
)
iface
;
EnumOleSTATDATA
*
This
=
impl_from_IEnumSTATDATA
(
iface
)
;
HRESULT
hr
=
S_OK
;
TRACE
(
"(%d, %p, %p)
\n
"
,
celt
,
rgelt
,
pceltFetched
);
...
...
@@ -140,7 +145,7 @@ static HRESULT WINAPI EnumOleSTATDATA_Next(
static
HRESULT
WINAPI
EnumOleSTATDATA_Skip
(
IEnumSTATDATA
*
iface
,
ULONG
celt
)
{
EnumOleSTATDATA
*
This
=
(
EnumOleSTATDATA
*
)
iface
;
EnumOleSTATDATA
*
This
=
impl_from_IEnumSTATDATA
(
iface
)
;
TRACE
(
"(%d)
\n
"
,
celt
);
...
...
@@ -161,7 +166,7 @@ static HRESULT WINAPI EnumOleSTATDATA_Skip(
static
HRESULT
WINAPI
EnumOleSTATDATA_Reset
(
IEnumSTATDATA
*
iface
)
{
EnumOleSTATDATA
*
This
=
(
EnumOleSTATDATA
*
)
iface
;
EnumOleSTATDATA
*
This
=
impl_from_IEnumSTATDATA
(
iface
)
;
TRACE
(
"()
\n
"
);
...
...
@@ -173,7 +178,7 @@ static HRESULT WINAPI EnumOleSTATDATA_Clone(
IEnumSTATDATA
*
iface
,
IEnumSTATDATA
**
ppenum
)
{
EnumOleSTATDATA
*
This
=
(
EnumOleSTATDATA
*
)
iface
;
EnumOleSTATDATA
*
This
=
impl_from_IEnumSTATDATA
(
iface
)
;
return
EnumOleSTATDATA_Construct
(
This
->
pOleAdviseHolder
,
This
->
index
,
ppenum
);
}
...
...
@@ -193,12 +198,12 @@ static HRESULT EnumOleSTATDATA_Construct(OleAdviseHolderImpl *pOleAdviseHolder,
EnumOleSTATDATA
*
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpv
tbl
=
&
EnumOleSTATDATA_VTable
;
This
->
IEnumSTATDATA_iface
.
lpV
tbl
=
&
EnumOleSTATDATA_VTable
;
This
->
ref
=
1
;
This
->
index
=
index
;
This
->
pOleAdviseHolder
=
pOleAdviseHolder
;
IOleAdviseHolder_AddRef
((
IOleAdviseHolder
*
)
pOleAdviseHolder
);
*
ppenum
=
(
IEnumSTATDATA
*
)
&
This
->
lpvtbl
;
*
ppenum
=
&
This
->
IEnumSTATDATA_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