winevulkan: Correctly allocate memory for VkCommandBuffers (Coverity).

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-07-21 13:16:22 +02:00 committed by Alexandre Julliard
parent 9f1cdb4970
commit 1e24f7da55
1 changed files with 1 additions and 1 deletions

View File

@ -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;