Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8638ef9
Commit
b8638ef9
authored
Oct 10, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Basic COM cleanup for the IEnumIDList iface.
parent
a6e4c721
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
39 deletions
+33
-39
enumidlist.c
dlls/shell32/enumidlist.c
+33
-39
No files found.
dlls/shell32/enumidlist.c
View file @
b8638ef9
...
...
@@ -45,7 +45,7 @@ typedef struct tagENUMLIST
typedef
struct
{
const
IEnumIDListVtbl
*
lpVtbl
;
IEnumIDList
IEnumIDList_iface
;
LONG
ref
;
LPENUMLIST
mpFirst
;
LPENUMLIST
mpLast
;
...
...
@@ -180,6 +180,11 @@ static BOOL DeleteList(IEnumIDListImpl *This)
return
TRUE
;
}
static
inline
IEnumIDListImpl
*
impl_from_IEnumIDList
(
IEnumIDList
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IEnumIDListImpl
,
IEnumIDList_iface
);
}
/**************************************************************************
* IEnumIDList_Folder_Constructor
*
...
...
@@ -193,22 +198,22 @@ IEnumIDList * IEnumIDList_Constructor(void)
if
(
lpeidl
)
{
lpeidl
->
ref
=
1
;
lpeidl
->
lpVtbl
=
&
eidlvt
;
lpeidl
->
IEnumIDList_iface
.
lpVtbl
=
&
eidlvt
;
}
else
return
NULL
;
TRACE
(
"-- (%p)->()
\n
"
,
lpeidl
);
return
(
IEnumIDList
*
)
lpeidl
;
return
&
lpeidl
->
IEnumIDList_iface
;
}
/**************************************************************************
*
EnumIDList_
QueryInterface
*
IEnumIDList::
QueryInterface
*/
static
HRESULT
WINAPI
IEnumIDList_fnQueryInterface
(
IEnumIDList
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
static
HRESULT
WINAPI
IEnumIDList_fnQueryInterface
(
IEnumIDList
*
iface
,
REFIID
riid
,
void
**
ppvObj
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
TRACE
(
"(%p)->(
\n\t
IID:
\t
%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObj
);
...
...
@@ -232,12 +237,11 @@ static HRESULT WINAPI IEnumIDList_fnQueryInterface(
}
/******************************************************************************
* IEnumIDList
_fn
AddRef
* IEnumIDList
::
AddRef
*/
static
ULONG
WINAPI
IEnumIDList_fnAddRef
(
IEnumIDList
*
iface
)
static
ULONG
WINAPI
IEnumIDList_fnAddRef
(
IEnumIDList
*
iface
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -245,12 +249,11 @@ static ULONG WINAPI IEnumIDList_fnAddRef(
return
refCount
;
}
/******************************************************************************
* IEnumIDList
_fn
Release
* IEnumIDList
::
Release
*/
static
ULONG
WINAPI
IEnumIDList_fnRelease
(
IEnumIDList
*
iface
)
static
ULONG
WINAPI
IEnumIDList_fnRelease
(
IEnumIDList
*
iface
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
refCount
+
1
);
...
...
@@ -264,16 +267,13 @@ static ULONG WINAPI IEnumIDList_fnRelease(
}
/**************************************************************************
* IEnumIDList
_fn
Next
* IEnumIDList
::
Next
*/
static
HRESULT
WINAPI
IEnumIDList_fnNext
(
IEnumIDList
*
iface
,
ULONG
celt
,
LPITEMIDLIST
*
rgelt
,
ULONG
*
pceltFetched
)
static
HRESULT
WINAPI
IEnumIDList_fnNext
(
IEnumIDList
*
iface
,
ULONG
celt
,
LPITEMIDLIST
*
rgelt
,
ULONG
*
pceltFetched
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
ULONG
i
;
HRESULT
hr
=
S_OK
;
...
...
@@ -313,12 +313,11 @@ static HRESULT WINAPI IEnumIDList_fnNext(
}
/**************************************************************************
* IEnumIDList
_fn
Skip
* IEnumIDList
::
Skip
*/
static
HRESULT
WINAPI
IEnumIDList_fnSkip
(
IEnumIDList
*
iface
,
ULONG
celt
)
static
HRESULT
WINAPI
IEnumIDList_fnSkip
(
IEnumIDList
*
iface
,
ULONG
celt
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
DWORD
dwIndex
;
HRESULT
hr
=
S_OK
;
...
...
@@ -335,32 +334,27 @@ static HRESULT WINAPI IEnumIDList_fnSkip(
return
hr
;
}
/**************************************************************************
* IEnumIDList
_fn
Reset
* IEnumIDList
::
Reset
*/
static
HRESULT
WINAPI
IEnumIDList_fnReset
(
IEnumIDList
*
iface
)
static
HRESULT
WINAPI
IEnumIDList_fnReset
(
IEnumIDList
*
iface
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
This
);
This
->
mpCurrent
=
This
->
mpFirst
;
return
S_OK
;
}
/**************************************************************************
* IEnumIDList
_fn
Clone
* IEnumIDList
::
Clone
*/
static
HRESULT
WINAPI
IEnumIDList_fnClone
(
IEnumIDList
*
iface
,
LPENUMIDLIST
*
ppenum
)
static
HRESULT
WINAPI
IEnumIDList_fnClone
(
IEnumIDList
*
iface
,
IEnumIDList
**
ppenum
)
{
IEnumIDListImpl
*
This
=
(
IEnumIDListImpl
*
)
iface
;
IEnumIDListImpl
*
This
=
impl_from_IEnumIDList
(
iface
)
;
TRACE
(
"(%p)->() to (%p)->() E_NOTIMPL
\n
"
,
This
,
ppenum
);
return
E_NOTIMPL
;
}
/**************************************************************************
* IEnumIDList_fnVTable
*/
static
const
IEnumIDListVtbl
eidlvt
=
{
IEnumIDList_fnQueryInterface
,
...
...
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