1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00

Protsetup protsetup

read protect should map to Win32 PAGE_NOACCESS

Copied from Perforce
 Change: 15071
 ServerID: perforce.ravenbrook.com
This commit is contained in:
David Jones 1995-12-11 11:49:01 +00:00
parent d9e7ebbf01
commit ef0df9a05f

View file

@ -1,7 +1,7 @@
/* impl.c.protnt
*
* PROTECTION FOR WIN32
* $HopeName$
* $HopeName: MMsrc/!protnt.c(trunk.1)$
*
* Copyright (C) 1995 Harlequin Group, all rights reserved
*/
@ -31,7 +31,7 @@ Addr ProtGrain(void)
return grain;
}
void ProtSetUp(void)
void ProtSetup(void)
{
return;
}
@ -54,7 +54,7 @@ void ProtSet(Addr base, Addr limit, ProtMode mode)
if((mode & ProtWRITE) != 0)
newProtect = PAGE_EXECUTE_READ;
if((mode & ProtREAD) != 0)
newProtect = PAGE_EXECUTE;
newProtect = PAGE_NOACCESS;
if(VirtualProtect((LPVOID)base, (DWORD)(limit - base),
newProtect, &oldProtect) != TRUE)