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
1c35951f
Commit
1c35951f
authored
Jan 14, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs: COM cleanup for the IAssemblyCache iface.
parent
c91afb97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
cache.c
dlls/sxs/cache.c
+11
-6
No files found.
dlls/sxs/cache.c
View file @
1c35951f
...
...
@@ -45,16 +45,21 @@ static inline WCHAR *strdupW( const WCHAR *s )
struct
cache
{
const
IAssemblyCacheVtbl
*
vtbl
;
IAssemblyCache
IAssemblyCache_iface
;
LONG
refs
;
};
static
inline
struct
cache
*
impl_from_IAssemblyCache
(
IAssemblyCache
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
cache
,
IAssemblyCache_iface
);
}
static
HRESULT
WINAPI
cache_QueryInterface
(
IAssemblyCache
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
cache
*
cache
=
(
struct
cache
*
)
iface
;
struct
cache
*
cache
=
impl_from_IAssemblyCache
(
iface
)
;
TRACE
(
"%p, %s, %p
\n
"
,
cache
,
debugstr_guid
(
riid
),
obj
);
...
...
@@ -73,13 +78,13 @@ static HRESULT WINAPI cache_QueryInterface(
static
ULONG
WINAPI
cache_AddRef
(
IAssemblyCache
*
iface
)
{
struct
cache
*
cache
=
(
struct
cache
*
)
iface
;
struct
cache
*
cache
=
impl_from_IAssemblyCache
(
iface
)
;
return
InterlockedIncrement
(
&
cache
->
refs
);
}
static
ULONG
WINAPI
cache_Release
(
IAssemblyCache
*
iface
)
{
struct
cache
*
cache
=
(
struct
cache
*
)
iface
;
struct
cache
*
cache
=
impl_from_IAssemblyCache
(
iface
)
;
ULONG
refs
=
InterlockedDecrement
(
&
cache
->
refs
);
if
(
!
refs
)
...
...
@@ -605,9 +610,9 @@ HRESULT WINAPI CreateAssemblyCache( IAssemblyCache **obj, DWORD reserved )
if
(
!
cache
)
return
E_OUTOFMEMORY
;
cache
->
v
tbl
=
&
cache_vtbl
;
cache
->
IAssemblyCache_iface
.
lpV
tbl
=
&
cache_vtbl
;
cache
->
refs
=
1
;
*
obj
=
(
IAssemblyCache
*
)
cach
e
;
*
obj
=
&
cache
->
IAssemblyCache_ifac
e
;
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