Add a warning when the normal load address for a win32 program is not

available.
oldstable
Gerard Patel 2000-07-15 15:11:31 +00:00 committed by Alexandre Julliard
parent 74b98116c6
commit bd55eb8703
1 changed files with 3 additions and 1 deletions

View File

@ -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)?