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
3480ccbb
Commit
3480ccbb
authored
Jun 12, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Always load mscoree.dll from the system directory.
parent
458f6b7c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
assembly.c
dlls/msi/assembly.c
+7
-2
No files found.
dlls/msi/assembly.c
View file @
3480ccbb
...
...
@@ -44,19 +44,24 @@ static HMODULE hfusion10, hfusion11, hfusion20, hfusion40, hmscoree, hsxs;
static
BOOL
init_function_pointers
(
void
)
{
static
const
WCHAR
szFusion
[]
=
{
'f'
,
'u'
,
's'
,
'i'
,
'o'
,
'n'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
szMscoree
[]
=
{
'\\'
,
'm'
,
's'
,
'c'
,
'o'
,
'r'
,
'e'
,
'e'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
szSxs
[]
=
{
's'
,
'x'
,
's'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
szVersion10
[]
=
{
'v'
,
'1'
,
'.'
,
'0'
,
'.'
,
'3'
,
'7'
,
'0'
,
'5'
,
0
};
static
const
WCHAR
szVersion11
[]
=
{
'v'
,
'1'
,
'.'
,
'1'
,
'.'
,
'4'
,
'3'
,
'2'
,
'2'
,
0
};
static
const
WCHAR
szVersion20
[]
=
{
'v'
,
'2'
,
'.'
,
'0'
,
'.'
,
'5'
,
'0'
,
'7'
,
'2'
,
'7'
,
0
};
static
const
WCHAR
szVersion40
[]
=
{
'v'
,
'4'
,
'.'
,
'0'
,
'.'
,
'3'
,
'0'
,
'3'
,
'1'
,
'9'
,
0
};
WCHAR
path
[
MAX_PATH
];
DWORD
len
=
GetSystemDirectoryW
(
path
,
MAX_PATH
);
if
(
!
hsxs
&&
!
(
hsxs
=
LoadLibrary
A
(
"sxs.dll"
)))
return
FALSE
;
if
(
!
hsxs
&&
!
(
hsxs
=
LoadLibrary
W
(
szSxs
)))
return
FALSE
;
if
(
!
(
pCreateAssemblyCacheSxs
=
(
void
*
)
GetProcAddress
(
hsxs
,
"CreateAssemblyCache"
)))
{
FreeLibrary
(
hsxs
);
hsxs
=
NULL
;
return
FALSE
;
}
if
(
hmscoree
||
!
(
hmscoree
=
LoadLibraryA
(
"mscoree.dll"
)))
return
TRUE
;
strcpyW
(
path
+
len
,
szMscoree
);
if
(
hmscoree
||
!
(
hmscoree
=
LoadLibraryW
(
path
)))
return
TRUE
;
pGetFileVersion
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"GetFileVersion"
);
/* missing from v1.0.3705 */
if
(
!
(
pLoadLibraryShim
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"LoadLibraryShim"
)))
{
...
...
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