aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/protw3.c
diff options
context:
space:
mode:
Diffstat (limited to 'mps/code/protw3.c')
-rw-r--r--mps/code/protw3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mps/code/protw3.c b/mps/code/protw3.c
index 8a9e690b62d..03af9ff40cf 100644
--- a/mps/code/protw3.c
+++ b/mps/code/protw3.c
@@ -42,7 +42,7 @@ void ProtSet(Addr base, Addr limit, AccessSet mode)
42 if((mode & AccessREAD) != 0) 42 if((mode & AccessREAD) != 0)
43 newProtect = PAGE_NOACCESS; 43 newProtect = PAGE_NOACCESS;
44 44
45 if(VirtualProtect((LPVOID)base, (DWORD)AddrOffset(base, limit), 45 if(VirtualProtect((LPVOID)base, (SIZE_T)AddrOffset(base, limit),
46 newProtect, &oldProtect) == 0) 46 newProtect, &oldProtect) == 0)
47 NOTREACHED; 47 NOTREACHED;
48} 48}
@@ -52,7 +52,7 @@ LONG ProtSEHfilter(LPEXCEPTION_POINTERS info)
52{ 52{
53 LPEXCEPTION_RECORD er; 53 LPEXCEPTION_RECORD er;
54 DWORD iswrite; 54 DWORD iswrite;
55 DWORD address; 55 ULONG_PTR address;
56 AccessSet mode; 56 AccessSet mode;
57 Addr base, limit; 57 Addr base, limit;
58 LONG action; 58 LONG action;