diff options
author | Michal Strehovský <MichalStrehovsky@users.noreply.github.com> | 2016-11-16 03:22:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 03:22:34 +0300 |
commit | bcdf6145843bd5c51aca14d672787bf39d3a7616 (patch) | |
tree | 8c463db771d5bb922cfd9c4cd2fd3fc6312d0d8a /src/Native/Runtime/windows | |
parent | 4226b55a7aae37f2eb2998dd3bc2ce0237ecdbf1 (diff) | |
parent | 9631e8d9ba81b42a49a8fd22b95bbce65cfa9681 (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.cpp | 6 |
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; |