Fix UWP VirtualAlloc import (dotnet/corert#6882)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 24 Jan 2019 15:25:00 +0000 (16:25 +0100)
committerJan Kotas <jkotas@microsoft.com>
Thu, 24 Jan 2019 17:25:45 +0000 (09:25 -0800)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/System.Private.CoreLib/shared/Interop/Windows/Kernel32/Interop.VirtualAlloc.cs

index 25fd1f0..a97dc1a 100644 (file)
@@ -16,7 +16,7 @@ internal partial class Interop
         internal const int PAGE_READWRITE = 0x04;
 
 #if ENABLE_WINRT
-        [DllImport(Libraries.Kernel32, EntryPoint = "VirtualAllocFromApp")]
+        [DllImport("api-ms-win-core-memory-l1-1-3.dll", EntryPoint = "VirtualAllocFromApp")]
         internal static extern unsafe void* VirtualAlloc(void* BaseAddress, UIntPtr Size, int AllocationType, int Protection);
 #else
         [DllImport(Libraries.Kernel32)]