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
f0be3d81
Commit
f0be3d81
authored
Sep 02, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: COM cleanup for the IEnumVARIANT iface.
parent
ccb05cee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
automation.c
dlls/msi/automation.c
+18
-14
No files found.
dlls/msi/automation.c
View file @
f0be3d81
...
...
@@ -88,10 +88,7 @@ struct AutomationObject {
*/
typedef
struct
{
/* VTables */
const
IEnumVARIANTVtbl
*
lpVtbl
;
/* Object reference count */
IEnumVARIANT
IEnumVARIANT_iface
;
LONG
ref
;
/* Current position and pointer to AutomationObject that stores actual data */
...
...
@@ -202,7 +199,7 @@ static HRESULT create_list_enumerator(IUnknown *pUnkOuter, LPVOID *ppObj, Automa
object
=
msi_alloc_zero
(
sizeof
(
ListEnumerator
)
);
/* Set all the VTable references */
object
->
lpVtbl
=
&
ListEnumerator_Vtbl
;
object
->
IEnumVARIANT_iface
.
lpVtbl
=
&
ListEnumerator_Vtbl
;
object
->
ref
=
1
;
/* Store data that was passed */
...
...
@@ -560,10 +557,16 @@ static const IProvideMultipleClassInfoVtbl AutomationObject_IProvideMultipleClas
* ListEnumerator methods
*/
static
inline
ListEnumerator
*
impl_from_IEnumVARIANT
(
IEnumVARIANT
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ListEnumerator
,
IEnumVARIANT_iface
);
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
ListEnumerator_QueryInterface
(
IEnumVARIANT
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
static
HRESULT
WINAPI
ListEnumerator_QueryInterface
(
IEnumVARIANT
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
TRACE
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
...
...
@@ -586,7 +589,7 @@ static HRESULT WINAPI ListEnumerator_QueryInterface(IEnumVARIANT* iface, REFIID
static
ULONG
WINAPI
ListEnumerator_AddRef
(
IEnumVARIANT
*
iface
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
TRACE
(
"(%p/%p)
\n
"
,
iface
,
This
);
...
...
@@ -595,7 +598,7 @@ static ULONG WINAPI ListEnumerator_AddRef(IEnumVARIANT* iface)
static
ULONG
WINAPI
ListEnumerator_Release
(
IEnumVARIANT
*
iface
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p/%p)
\n
"
,
iface
,
This
);
...
...
@@ -611,9 +614,10 @@ static ULONG WINAPI ListEnumerator_Release(IEnumVARIANT* iface)
/* IEnumVARIANT methods */
static
HRESULT
WINAPI
ListEnumerator_Next
(
IEnumVARIANT
*
iface
,
ULONG
celt
,
VARIANT
*
rgVar
,
ULONG
*
pCeltFetched
)
static
HRESULT
WINAPI
ListEnumerator_Next
(
IEnumVARIANT
*
iface
,
ULONG
celt
,
VARIANT
*
rgVar
,
ULONG
*
pCeltFetched
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
ListData
*
data
=
private_data
(
This
->
pObj
);
ULONG
idx
,
local
;
...
...
@@ -640,7 +644,7 @@ static HRESULT WINAPI ListEnumerator_Next(IEnumVARIANT* iface, ULONG celt, VARIA
static
HRESULT
WINAPI
ListEnumerator_Skip
(
IEnumVARIANT
*
iface
,
ULONG
celt
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
ListData
*
data
=
private_data
(
This
->
pObj
);
TRACE
(
"(%p,%uld)
\n
"
,
iface
,
celt
);
...
...
@@ -656,7 +660,7 @@ static HRESULT WINAPI ListEnumerator_Skip(IEnumVARIANT* iface, ULONG celt)
static
HRESULT
WINAPI
ListEnumerator_Reset
(
IEnumVARIANT
*
iface
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -666,7 +670,7 @@ static HRESULT WINAPI ListEnumerator_Reset(IEnumVARIANT* iface)
static
HRESULT
WINAPI
ListEnumerator_Clone
(
IEnumVARIANT
*
iface
,
IEnumVARIANT
**
ppEnum
)
{
ListEnumerator
*
This
=
(
ListEnumerator
*
)
iface
;
ListEnumerator
*
This
=
impl_from_IEnumVARIANT
(
iface
)
;
HRESULT
hr
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
ppEnum
);
...
...
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