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
bd55eb87
Commit
bd55eb87
authored
Jul 15, 2000
by
Gerard Patel
Committed by
Alexandre Julliard
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a warning when the normal load address for a win32 program is not
available.
parent
74b98116
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pe_image.c
loader/pe_image.c
+3
-1
No files found.
loader/pe_image.c
View file @
bd55eb87
...
...
@@ -615,12 +615,14 @@ HMODULE PE_LoadImage( HANDLE hFile, LPCSTR filename )
if
(
load_addr
==
0
)
{
/* We need to perform base relocations */
WARN
(
"
We need to perform base relocations
for %s
\n
"
,
filename
);
WARN
(
"
Info: base relocations needed
for %s
\n
"
,
filename
);
dir
=
nt
->
OptionalHeader
.
DataDirectory
+
IMAGE_DIRECTORY_ENTRY_BASERELOC
;
if
(
dir
->
Size
)
reloc
=
dir
->
VirtualAddress
;
else
{
if
(
nt
->
OptionalHeader
.
ImageBase
==
0x400000
)
ERR
(
"Standard load address for a Win32 program not available - patched kernel ?
\n
"
);
FIXME
(
"FATAL: Need to relocate %s, but no relocation records present (%s). Try to run that file directly !
\n
"
,
filename
,
(
nt
->
FileHeader
.
Characteristics
&
IMAGE_FILE_RELOCS_STRIPPED
)
?
...
...
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