Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2016-11-16 03:22:34 +0300
committerGitHub <noreply@github.com>2016-11-16 03:22:34 +0300
commitbcdf6145843bd5c51aca14d672787bf39d3a7616 (patch)
tree8c463db771d5bb922cfd9c4cd2fd3fc6312d0d8a /src/Native/Runtime/windows
parent4226b55a7aae37f2eb2998dd3bc2ce0237ecdbf1 (diff)
parent9631e8d9ba81b42a49a8fd22b95bbce65cfa9681 (diff)
Merge pull request #2214 from dotnet/nmirror
Merge nmirror to master
Diffstat (limited to 'src/Native/Runtime/windows')
-rw-r--r--src/Native/Runtime/windows/PalRedhawkMinWin.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Native/Runtime/windows/PalRedhawkMinWin.cpp b/src/Native/Runtime/windows/PalRedhawkMinWin.cpp
index b17b7da1b..49097edd3 100644
--- a/src/Native/Runtime/windows/PalRedhawkMinWin.cpp
+++ b/src/Native/Runtime/windows/PalRedhawkMinWin.cpp
@@ -1318,6 +1318,12 @@ REDHAWK_PALEXPORT UInt32_BOOL REDHAWK_PALAPI PalVirtualFree(_In_ void* pAddress,
}
#pragma warning (pop)
+REDHAWK_PALEXPORT UInt32_BOOL REDHAWK_PALAPI PalVirtualProtect(_In_ void* pAddress, UIntNative size, UInt32 protect)
+{
+ DWORD oldProtect;
+ return VirtualProtect(pAddress, size, protect, &oldProtect);
+}
+
REDHAWK_PALEXPORT _Ret_maybenull_ void* REDHAWK_PALAPI PalSetWerDataBuffer(_In_ void* pNewBuffer)
{
static void* pBuffer;