mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
ntdll: Make sure the last relocation contains some data.
This commit is contained in:
parent
2f1c02e7b7
commit
eaae717ede
@ -1108,7 +1108,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
|
||||
end = (IMAGE_BASE_RELOCATION *)(ptr + relocs->VirtualAddress + relocs->Size);
|
||||
delta = ptr - base;
|
||||
|
||||
while (rel <= end - 1 && rel->SizeOfBlock)
|
||||
while (rel < end - 1 && rel->SizeOfBlock)
|
||||
{
|
||||
if (rel->VirtualAddress >= total_size)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user