mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Improve message given on image map failure.
This commit is contained in:
parent
9eb33c82f3
commit
4d2cfee1fa
@ -724,9 +724,10 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
|
||||
relocs = &nt->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC];
|
||||
if (!relocs->VirtualAddress || !relocs->Size)
|
||||
{
|
||||
if (nt->OptionalHeader.ImageBase == 0x400000)
|
||||
ERR("Standard load address for a Win32 program (0x00400000) not available - security-patched kernel ?\n");
|
||||
else
|
||||
if (nt->OptionalHeader.ImageBase == 0x400000) {
|
||||
ERR("Image was mapped at %p: standard load address for a Win32 program (0x00400000) not available\n", ptr);
|
||||
ERR("Do you have exec-shield or prelink active?\n");
|
||||
} else
|
||||
ERR( "FATAL: Need to relocate module from addr %lx, but there are no relocation records\n",
|
||||
nt->OptionalHeader.ImageBase );
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user