[PATCH 0/1] MR5526: 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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5526
From: Billy Laws <blaws05(a)gmail.com> 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. --- dlls/winevulkan/vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winevulkan/vulkan.c b/dlls/winevulkan/vulkan.c index 4221b7066e6..43ce65fc221 100644 --- a/dlls/winevulkan/vulkan.c +++ b/dlls/winevulkan/vulkan.c @@ -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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5526
participants (2)
-
Billy Laws -
Billy Laws (@bylaws)