Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
bf70fe36
Commit
bf70fe36
authored
10 years ago
by
André Zwing
Committed by
Alexandre Julliard
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fusion: Add implementation for CreateAssemblyCacheItem.
parent
3488f88f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/fusion/asmcache.c
+32
-15
32 additions, 15 deletions
dlls/fusion/asmcache.c
with
32 additions
and
15 deletions
dlls/fusion/asmcache.c
+
32
−
15
View file @
bf70fe36
...
...
@@ -41,6 +41,19 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
fusion
);
typedef
struct
{
IAssemblyCache
IAssemblyCache_iface
;
LONG
ref
;
HANDLE
lock
;
}
IAssemblyCacheImpl
;
typedef
struct
{
IAssemblyCacheItem
IAssemblyCacheItem_iface
;
LONG
ref
;
}
IAssemblyCacheItemImpl
;
static
const
WCHAR
cache_mutex_nameW
[]
=
{
'_'
,
'_'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
'F'
,
'U'
,
'S'
,
'I'
,
'O'
,
'N'
,
'_'
,
'C'
,
'A'
,
'C'
,
'H'
,
'E'
,
'_'
,
'M'
,
'U'
,
'T'
,
'E'
,
'X'
,
'_'
,
'_'
,
0
};
...
...
@@ -141,13 +154,6 @@ static BOOL get_assembly_directory(LPWSTR dir, DWORD size, const char *version,
/* IAssemblyCache */
typedef
struct
{
IAssemblyCache
IAssemblyCache_iface
;
LONG
ref
;
HANDLE
lock
;
}
IAssemblyCacheImpl
;
static
inline
IAssemblyCacheImpl
*
impl_from_IAssemblyCache
(
IAssemblyCache
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IAssemblyCacheImpl
,
IAssemblyCache_iface
);
...
...
@@ -351,16 +357,33 @@ done:
return
hr
;
}
static
const
IAssemblyCacheItemVtbl
AssemblyCacheItemVtbl
;
static
HRESULT
WINAPI
IAssemblyCacheImpl_CreateAssemblyCacheItem
(
IAssemblyCache
*
iface
,
DWORD
dwFlags
,
PVOID
pvReserved
,
IAssemblyCacheItem
**
ppAsmItem
,
LPCWSTR
pszAssemblyName
)
{
FIXME
(
"(%p, %d, %p, %p, %s) stub!
\n
"
,
iface
,
dwFlags
,
pvReserved
,
IAssemblyCacheItemImpl
*
item
;
FIXME
(
"(%p, %d, %p, %p, %s) semi-stub!
\n
"
,
iface
,
dwFlags
,
pvReserved
,
ppAsmItem
,
debugstr_w
(
pszAssemblyName
));
return
E_NOTIMPL
;
if
(
!
ppAsmItem
)
return
E_INVALIDARG
;
*
ppAsmItem
=
NULL
;
item
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IAssemblyCacheItemImpl
));
if
(
!
item
)
return
E_OUTOFMEMORY
;
item
->
IAssemblyCacheItem_iface
.
lpVtbl
=
&
AssemblyCacheItemVtbl
;
item
->
ref
=
1
;
*
ppAsmItem
=
&
item
->
IAssemblyCacheItem_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
IAssemblyCacheImpl_CreateAssemblyScavenger
(
IAssemblyCache
*
iface
,
...
...
@@ -560,12 +583,6 @@ HRESULT WINAPI CreateAssemblyCache(IAssemblyCache **ppAsmCache, DWORD dwReserved
/* IAssemblyCacheItem */
typedef
struct
{
IAssemblyCacheItem
IAssemblyCacheItem_iface
;
LONG
ref
;
}
IAssemblyCacheItemImpl
;
static
inline
IAssemblyCacheItemImpl
*
impl_from_IAssemblyCacheItem
(
IAssemblyCacheItem
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IAssemblyCacheItemImpl
,
IAssemblyCacheItem_iface
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment