Index: src/platform-win32.cc |
=================================================================== |
--- src/platform-win32.cc (revision 8772) |
+++ src/platform-win32.cc (working copy) |
@@ -957,6 +957,12 @@ |
} |
+void OS::ProtectCode(void* address, const size_t size) { |
+ DWORD old_protect; |
+ VirtualProtect(address, size, PAGE_EXECUTE_READ, &old_protect); |
+} |
+ |
+ |
void OS::Guard(void* address, const size_t size) { |
DWORD oldprotect; |
VirtualProtect(address, size, PAGE_READONLY | PAGE_GUARD, &oldprotect); |