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:
parent
9f1cdb4970
commit
1e24f7da55
@ -513,7 +513,7 @@ VkResult WINAPI wine_vkAllocateCommandBuffers(VkDevice device,
|
|||||||
wine_dbgstr_longlong(allocate_info_host.commandPool),
|
wine_dbgstr_longlong(allocate_info_host.commandPool),
|
||||||
allocate_info_host.level);
|
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;
|
res = VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user