ntdll: Make sure the last relocation contains some data.

This commit is contained in:
Alexandre Julliard 2008-10-27 13:19:30 +01:00
parent 2f1c02e7b7
commit eaae717ede
1 changed files with 1 additions and 1 deletions

View File

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