Alexandre Julliard : ntdll: Make sure the last relocation contains some data.
Alexandre Julliard
julliard at winehq.org
Mon Oct 27 08:04:04 CDT 2008
Module: wine
Branch: master
Commit: eaae717ede28d155937fdab12f35a9b33f2ca00e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eaae717ede28d155937fdab12f35a9b33f2ca00e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Oct 27 13:19:30 2008 +0100
ntdll: Make sure the last relocation contains some data.
---
dlls/ntdll/virtual.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 78e38dc..527dedd 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -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)
{
More information about the wine-cvs
mailing list