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
Lorenzo Ferrillo
wine
Commits
0c6ab246
Commit
0c6ab246
authored
12 years ago
by
Hans Leidekker
Committed by
Alexandre Julliard
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fusion: Add support for enumerating version 4.0 assemblies.
parent
f408fa83
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/fusion/asmenum.c
+28
-10
28 additions, 10 deletions
dlls/fusion/asmenum.c
with
28 additions
and
10 deletions
dlls/fusion/asmenum.c
+
28
−
10
View file @
0c6ab246
...
...
@@ -382,32 +382,50 @@ static HRESULT enum_gac_assemblies(struct list *assemblies, IAssemblyName *name,
static
HRESULT
enumerate_gac
(
IAssemblyEnumImpl
*
asmenum
,
IAssemblyName
*
pName
)
{
WCHAR
path
[
MAX_PATH
];
WCHAR
buf
[
MAX_PATH
];
static
const
WCHAR
gac
[]
=
{
'\\'
,
'G'
,
'A'
,
'C'
,
0
};
static
const
WCHAR
gac_32
[]
=
{
'\\'
,
'G'
,
'A'
,
'C'
,
'_'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
gac_msil
[]
=
{
'\\'
,
'G'
,
'A'
,
'C'
,
'_'
,
'M'
,
'S'
,
'I'
,
'L'
,
0
};
WCHAR
path
[
MAX_PATH
],
buf
[
MAX_PATH
];
HRESULT
hr
;
DWORD
size
;
static
WCHAR
under32
[]
=
{
'_'
,
'3'
,
'2'
,
0
};
static
WCHAR
msil
[]
=
{
'_'
,
'M'
,
'S'
,
'I'
,
'L'
,
0
};
size
=
MAX_PATH
;
hr
=
GetCachePath
(
ASM_CACHE_ROOT_EX
,
buf
,
&
size
);
if
(
FAILED
(
hr
))
return
hr
;
strcpyW
(
path
,
buf
);
strcpyW
(
path
+
size
-
1
,
gac_32
);
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
path
);
if
(
FAILED
(
hr
))
return
hr
;
strcpyW
(
path
,
buf
);
strcpyW
(
path
+
size
-
1
,
gac_msil
);
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
path
);
if
(
FAILED
(
hr
))
return
hr
;
size
=
MAX_PATH
;
hr
=
GetCachePath
(
ASM_CACHE_
GAC
,
buf
,
&
size
);
hr
=
GetCachePath
(
ASM_CACHE_
ROOT
,
buf
,
&
size
);
if
(
FAILED
(
hr
))
return
hr
;
l
strcpyW
(
path
,
buf
);
l
strc
at
W
(
path
,
under
32
);
strcpyW
(
path
,
buf
);
strc
py
W
(
path
+
size
-
1
,
gac_
32
);
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
path
);
if
(
FAILED
(
hr
))
return
hr
;
l
strcpyW
(
path
,
buf
);
l
strc
at
W
(
path
,
msil
);
strcpyW
(
path
,
buf
);
strc
py
W
(
path
+
size
-
1
,
gac_
msil
);
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
path
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
buf
);
strcpyW
(
path
,
buf
);
strcpyW
(
path
+
size
-
1
,
gac
);
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
path
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
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