Commit 1e24f7da authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

winevulkan: Correctly allocate memory for VkCommandBuffers (Coverity).

parent 9f1cdb49
......@@ -513,7 +513,7 @@ VkResult WINAPI wine_vkAllocateCommandBuffers(VkDevice device,
wine_dbgstr_longlong(allocate_info_host.commandPool),
allocate_info_host.level);
if (!(buffers[i] = heap_alloc_zero(sizeof(*buffers))))
if (!(buffers[i] = heap_alloc_zero(sizeof(**buffers))))
{
res = VK_ERROR_OUT_OF_HOST_MEMORY;
break;
......
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