diff options
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 0966ac2..369c29f 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -2068,7 +2068,7 @@ getpagesize (void) int mprotect (char *addr, int len, int prot) { - int np, op; + DWORD np, op; if (prot == 7) np = 0x40; @@ -2082,6 +2082,8 @@ mprotect (char *addr, int len, int prot) np = 0x02; else if (prot == 0) np = 0x01; + else + return -1; if (VirtualProtect (addr, len, np, &op)) return 0; |