Alexandre Julliard : ntdll: Round up the mapping size in
map_file_into_view when setting
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 11 14:34:32 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 9eae2d714de1732f6279ce8eca393eb959922983
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9eae2d714de1732f6279ce8eca393eb959922983
Author: Alexandre Julliard <julliard at 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;
}
More information about the wine-cvs
mailing list