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
0d7b3247
Commit
0d7b3247
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: Standardize the COM usage in asmcache.c.
parent
21c1cbf3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
asmcache.c
dlls/fusion/asmcache.c
+20
-10
No files found.
dlls/fusion/asmcache.c
View file @
0d7b3247
...
...
@@ -123,15 +123,20 @@ static BOOL get_assembly_directory(LPWSTR dir, DWORD size, BYTE architecture)
/* IAssemblyCache */
typedef
struct
{
const
IAssemblyCacheVtbl
*
lpIAssemblyCacheVtbl
;
IAssemblyCache
IAssemblyCache_iface
;
LONG
ref
;
}
IAssemblyCacheImpl
;
static
inline
IAssemblyCacheImpl
*
impl_from_IAssemblyCache
(
IAssemblyCache
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IAssemblyCacheImpl
,
IAssemblyCache_iface
);
}
static
HRESULT
WINAPI
IAssemblyCacheImpl_QueryInterface
(
IAssemblyCache
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IAssemblyCacheImpl
*
This
=
(
IAssemblyCacheImpl
*
)
iface
;
IAssemblyCacheImpl
*
This
=
impl_from_IAssemblyCache
(
iface
)
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
...
@@ -151,7 +156,7 @@ static HRESULT WINAPI IAssemblyCacheImpl_QueryInterface(IAssemblyCache *iface,
static
ULONG
WINAPI
IAssemblyCacheImpl_AddRef
(
IAssemblyCache
*
iface
)
{
IAssemblyCacheImpl
*
This
=
(
IAssemblyCacheImpl
*
)
iface
;
IAssemblyCacheImpl
*
This
=
impl_from_IAssemblyCache
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -161,7 +166,7 @@ static ULONG WINAPI IAssemblyCacheImpl_AddRef(IAssemblyCache *iface)
static
ULONG
WINAPI
IAssemblyCacheImpl_Release
(
IAssemblyCache
*
iface
)
{
IAssemblyCacheImpl
*
This
=
(
IAssemblyCacheImpl
*
)
iface
;
IAssemblyCacheImpl
*
This
=
impl_from_IAssemblyCache
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
+
1
);
...
...
@@ -364,10 +369,10 @@ HRESULT WINAPI CreateAssemblyCache(IAssemblyCache **ppAsmCache, DWORD dwReserved
if
(
!
cache
)
return
E_OUTOFMEMORY
;
cache
->
lpIAssemblyCache
Vtbl
=
&
AssemblyCacheVtbl
;
cache
->
IAssemblyCache_iface
.
lp
Vtbl
=
&
AssemblyCacheVtbl
;
cache
->
ref
=
1
;
*
ppAsmCache
=
(
IAssemblyCache
*
)
cach
e
;
*
ppAsmCache
=
&
cache
->
IAssemblyCache_ifac
e
;
return
S_OK
;
}
...
...
@@ -375,15 +380,20 @@ HRESULT WINAPI CreateAssemblyCache(IAssemblyCache **ppAsmCache, DWORD dwReserved
/* IAssemblyCacheItem */
typedef
struct
{
const
IAssemblyCacheItemVtbl
*
lpIAssemblyCacheItemVtbl
;
IAssemblyCacheItem
IAssemblyCacheItem_iface
;
LONG
ref
;
}
IAssemblyCacheItemImpl
;
static
inline
IAssemblyCacheItemImpl
*
impl_from_IAssemblyCacheItem
(
IAssemblyCacheItem
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IAssemblyCacheItemImpl
,
IAssemblyCacheItem_iface
);
}
static
HRESULT
WINAPI
IAssemblyCacheItemImpl_QueryInterface
(
IAssemblyCacheItem
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IAssemblyCacheItemImpl
*
This
=
(
IAssemblyCacheItemImpl
*
)
iface
;
IAssemblyCacheItemImpl
*
This
=
impl_from_IAssemblyCacheItem
(
iface
)
;
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
...
...
@@ -403,7 +413,7 @@ static HRESULT WINAPI IAssemblyCacheItemImpl_QueryInterface(IAssemblyCacheItem *
static
ULONG
WINAPI
IAssemblyCacheItemImpl_AddRef
(
IAssemblyCacheItem
*
iface
)
{
IAssemblyCacheItemImpl
*
This
=
(
IAssemblyCacheItemImpl
*
)
iface
;
IAssemblyCacheItemImpl
*
This
=
impl_from_IAssemblyCacheItem
(
iface
)
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
-
1
);
...
...
@@ -413,7 +423,7 @@ static ULONG WINAPI IAssemblyCacheItemImpl_AddRef(IAssemblyCacheItem *iface)
static
ULONG
WINAPI
IAssemblyCacheItemImpl_Release
(
IAssemblyCacheItem
*
iface
)
{
IAssemblyCacheItemImpl
*
This
=
(
IAssemblyCacheItemImpl
*
)
iface
;
IAssemblyCacheItemImpl
*
This
=
impl_from_IAssemblyCacheItem
(
iface
)
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(ref before = %u)
\n
"
,
This
,
refCount
+
1
);
...
...
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