Alexandre Julliard : ntdll: Round up the mapping size in map_file_into_view when setting
Module: wine Branch: refs/heads/master Commit: 9eae2d714de1732f6279ce8eca393eb959922983 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9eae2d714de1732f6279ce8e... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 11 20:59:07 2006 +0100 ntdll: Round up the mapping size in map_file_into_view when setting the protection bytes. --- 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 912f5c4..e6d0236 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -727,7 +727,7 @@ static NTSTATUS map_file_into_view( stru pread( fd, ptr, size, offset ); if (prot != (PROT_READ|PROT_WRITE)) mprotect( ptr, size, prot ); /* Set the right protection */ done: - memset( view->prot + (start >> page_shift), vprot, size >> page_shift ); + memset( view->prot + (start >> page_shift), vprot, ROUND_SIZE(start,size) >> page_shift ); return STATUS_SUCCESS; }
participants (1)
-
Alexandre Julliard