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
0c6ab246
Commit
0c6ab246
authored
May 21, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Add support for enumerating version 4.0 assemblies.
parent
f408fa83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
asmenum.c
dlls/fusion/asmenum.c
+28
-10
No files found.
dlls/fusion/asmenum.c
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
);
lstrcatW
(
path
,
under
32
);
strcpyW
(
path
,
buf
);
strcpyW
(
path
+
size
-
1
,
gac_
32
);
hr
=
enum_gac_assemblies
(
&
asmenum
->
assemblies
,
pName
,
0
,
path
);
if
(
FAILED
(
hr
))
return
hr
;
l
strcpyW
(
path
,
buf
);
lstrcatW
(
path
,
msil
);
strcpyW
(
path
,
buf
);
strcpyW
(
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
;
...
...
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