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
586e46c8
Commit
586e46c8
authored
Nov 26, 1998
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 26, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary check for entrypoint address (test binary was
infected by a virus which uses invalid PE loading stuff).
parent
2d65536b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
13 deletions
+3
-13
pe_image.c
loader/pe_image.c
+3
-13
No files found.
loader/pe_image.c
View file @
586e46c8
...
...
@@ -434,13 +434,13 @@ static void do_relocations(WINE_MODREF *wm)
#endif
break
;
case
IMAGE_REL_BASED_HIGHADJ
:
WARN
(
win32
,
"Don't know what to do with IMAGE_REL_BASED_HIGHADJ
\n
"
);
FIXME
(
win32
,
"Don't know what to do with IMAGE_REL_BASED_HIGHADJ
\n
"
);
break
;
case
IMAGE_REL_BASED_MIPS_JMPADDR
:
WARN
(
win32
,
"Is this a MIPS machine ???
\n
"
);
FIXME
(
win32
,
"Is this a MIPS machine ???
\n
"
);
break
;
default:
WARN
(
win32
,
"Unknown fixup type
\n
"
);
FIXME
(
win32
,
"Unknown fixup type
\n
"
);
break
;
}
}
...
...
@@ -599,16 +599,6 @@ static BOOL32 PE_MapImage( PDB32 *process,WINE_MODREF *wm, OFSTRUCT *ofs, DWORD
*
(
IMAGE_DOS_HEADER
*
)
load_addr
=
*
dos_header
;
*
(
IMAGE_NT_HEADERS
*
)(
load_addr
+
dos_header
->
e_lfanew
)
=
*
nt_header
;
memcpy
(
PE_SECTIONS
(
load_addr
),
PE_SECTIONS
(
hModule
),
sizeof
(
IMAGE_SECTION_HEADER
)
*
nt_header
->
FileHeader
.
NumberOfSections
);
/* FIXME: Some binaries seems to have an AOEP below the base of code
* (win98 notepad.exe ?). Fix it up.
*/
if
(
nt_header
->
OptionalHeader
.
AddressOfEntryPoint
<
nt_header
->
OptionalHeader
.
BaseOfCode
)
{
FIXME
(
win32
,
"AddressOfEntryPoint (0x%08lx) is below BaseOfCode (0x%08lx). Setting to BaseOfCode (expect crash).
\n
"
,
nt_header
->
OptionalHeader
.
AddressOfEntryPoint
,
nt_header
->
OptionalHeader
.
BaseOfCode
);
/* Note use of the copied nt header, which is used later */
PE_HEADER
(
wm
->
module
)
->
OptionalHeader
.
AddressOfEntryPoint
=
nt_header
->
OptionalHeader
.
BaseOfCode
;
}
pe_seg
=
PE_SECTIONS
(
hModule
);
for
(
i
=
0
;
i
<
nt_header
->
FileHeader
.
NumberOfSections
;
i
++
,
pe_seg
++
)
{
...
...
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