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
dd9b0edb
Commit
dd9b0edb
authored
Aug 18, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fusion: Handle loading 64-bit .NET assemblies.
parent
48524c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
assembly.c
dlls/fusion/assembly.c
+10
-2
No files found.
dlls/fusion/assembly.c
View file @
dd9b0edb
...
@@ -58,7 +58,7 @@ struct tagASSEMBLY
...
@@ -58,7 +58,7 @@ struct tagASSEMBLY
HANDLE
hmap
;
HANDLE
hmap
;
BYTE
*
data
;
BYTE
*
data
;
IMAGE_NT_HEADERS
32
*
nthdr
;
IMAGE_NT_HEADERS
*
nthdr
;
IMAGE_COR20_HEADER
*
corhdr
;
IMAGE_COR20_HEADER
*
corhdr
;
METADATAHDR
*
metadatahdr
;
METADATAHDR
*
metadatahdr
;
...
@@ -647,7 +647,15 @@ static HRESULT parse_pe_header(ASSEMBLY *assembly)
...
@@ -647,7 +647,15 @@ static HRESULT parse_pe_header(ASSEMBLY *assembly)
if
(
!
assembly
->
nthdr
)
if
(
!
assembly
->
nthdr
)
return
E_FAIL
;
return
E_FAIL
;
datadirs
=
assembly
->
nthdr
->
OptionalHeader
.
DataDirectory
;
if
(
assembly
->
nthdr
->
FileHeader
.
Machine
==
IMAGE_FILE_MACHINE_AMD64
)
{
IMAGE_OPTIONAL_HEADER64
*
opthdr
=
(
IMAGE_OPTIONAL_HEADER64
*
)
&
assembly
->
nthdr
->
OptionalHeader
;
datadirs
=
opthdr
->
DataDirectory
;
}
else
datadirs
=
assembly
->
nthdr
->
OptionalHeader
.
DataDirectory
;
if
(
!
datadirs
)
if
(
!
datadirs
)
return
E_FAIL
;
return
E_FAIL
;
...
...
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