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
b194b778
Commit
b194b778
authored
Dec 04, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Use an iface instead of a vtbl pointer in IAssemblyEnumImpl.
parent
46ebaa9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
asmenum.c
dlls/fusion/asmenum.c
+13
-8
No files found.
dlls/fusion/asmenum.c
View file @
b194b778
...
...
@@ -45,17 +45,22 @@ typedef struct _tagASMNAME
typedef
struct
{
const
IAssemblyEnumVtbl
*
lpIAssemblyEnumVtbl
;
IAssemblyEnum
IAssemblyEnum_iface
;
struct
list
assemblies
;
struct
list
*
iter
;
LONG
ref
;
}
IAssemblyEnumImpl
;
static
inline
IAssemblyEnumImpl
*
impl_from_IAssemblyEnum
(
IAssemblyEnum
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IAssemblyEnumImpl
,
IAssemblyEnum_iface
);
}
static
HRESULT
WINAPI
IAssemblyEnumImpl_QueryInterface
(
IAssemblyEnum
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IAssemblyEnumImpl
*
This
=
(
IAssemblyEnumImpl
*
)
iface
;
IAssemblyEnumImpl
*
This
=
impl_from_IAssemblyEnum
(
iface
)
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
...
@@ -75,7 +80,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_QueryInterface(IAssemblyEnum *iface,
static
ULONG
WINAPI
IAssemblyEnumImpl_AddRef
(
IAssemblyEnum
*
iface
)
{
IAssemblyEnumImpl
*
This
=
(
IAssemblyEnumImpl
*
)
iface
;
IAssemblyEnumImpl
*
This
=
impl_from_IAssemblyEnum
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -85,7 +90,7 @@ static ULONG WINAPI IAssemblyEnumImpl_AddRef(IAssemblyEnum *iface)
static
ULONG
WINAPI
IAssemblyEnumImpl_Release
(
IAssemblyEnum
*
iface
)
{
IAssemblyEnumImpl
*
This
=
(
IAssemblyEnumImpl
*
)
iface
;
IAssemblyEnumImpl
*
This
=
impl_from_IAssemblyEnum
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
struct
list
*
item
,
*
cursor
;
...
...
@@ -113,7 +118,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_GetNextAssembly(IAssemblyEnum *iface,
IAssemblyName
**
ppName
,
DWORD
dwFlags
)
{
IAssemblyEnumImpl
*
asmenum
=
(
IAssemblyEnumImpl
*
)
iface
;
IAssemblyEnumImpl
*
asmenum
=
impl_from_IAssemblyEnum
(
iface
)
;
ASMNAME
*
asmname
;
TRACE
(
"(%p, %p, %p, %d)
\n
"
,
iface
,
pvReserved
,
ppName
,
dwFlags
);
...
...
@@ -135,7 +140,7 @@ static HRESULT WINAPI IAssemblyEnumImpl_GetNextAssembly(IAssemblyEnum *iface,
static
HRESULT
WINAPI
IAssemblyEnumImpl_Reset
(
IAssemblyEnum
*
iface
)
{
IAssemblyEnumImpl
*
asmenum
=
(
IAssemblyEnumImpl
*
)
iface
;
IAssemblyEnumImpl
*
asmenum
=
impl_from_IAssemblyEnum
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -431,7 +436,7 @@ HRESULT WINAPI CreateAssemblyEnum(IAssemblyEnum **pEnum, IUnknown *pUnkReserved,
if
(
!
asmenum
)
return
E_OUTOFMEMORY
;
asmenum
->
lpIAssemblyEnum
Vtbl
=
&
AssemblyEnumVtbl
;
asmenum
->
IAssemblyEnum_iface
.
lp
Vtbl
=
&
AssemblyEnumVtbl
;
asmenum
->
ref
=
1
;
list_init
(
&
asmenum
->
assemblies
);
...
...
@@ -446,7 +451,7 @@ HRESULT WINAPI CreateAssemblyEnum(IAssemblyEnum **pEnum, IUnknown *pUnkReserved,
}
asmenum
->
iter
=
list_head
(
&
asmenum
->
assemblies
);
*
pEnum
=
(
IAssemblyEnum
*
)
asmenum
;
*
pEnum
=
&
asmenum
->
IAssemblyEnum_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