[PATCH] winevulkan: Fix host command_buffers allocation size.
Rémi Bernon
rbernon at codeweavers.com
Wed Mar 3 09:31:55 CST 2021
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
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 a7f5462c432..51c2b8e0f5f 100644
--- a/dlls/winevulkan/vulkan.c
+++ b/dlls/winevulkan/vulkan.c
@@ -1290,7 +1290,7 @@ VkResult WINAPI wine_vkQueueSubmit(VkQueue queue, uint32_t count,
memcpy(&submits_host[i], &submits[i], sizeof(*submits_host));
num_command_buffers = submits[i].commandBufferCount;
- command_buffers = heap_calloc(num_command_buffers, sizeof(*submits_host));
+ command_buffers = heap_calloc(num_command_buffers, sizeof(*command_buffers));
if (!command_buffers)
{
ERR("Unable to allocate memory for command buffers!\n");
--
2.30.0
More information about the wine-devel
mailing list