Commit f1f28d2e authored by Billy Laws's avatar Billy Laws Committed by Alexandre Julliard

winevulkan: Allocate commited memory for placed mappings.

This is necessary to prevent virtual_set_force_exec from resetting the permissions of mappings back to --- when a non-NX-compatible module is loaded.
parent 1134834b
......@@ -1993,7 +1993,7 @@ VkResult wine_vkMapMemory2KHR(VkDevice handle, const VkMemoryMapInfoKHR *map_inf
info.flags |= VK_MEMORY_MAP_PLACED_BIT_EXT;
if (NtAllocateVirtualMemory(GetCurrentProcess(), &placed_info.pPlacedAddress, zero_bits, &alloc_size,
MEM_RESERVE, PAGE_READWRITE))
MEM_COMMIT, PAGE_READWRITE))
{
ERR("NtAllocateVirtualMemory failed\n");
return VK_ERROR_OUT_OF_HOST_MEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment