Skip to content
Snippets Groups Projects
Commit 18d7bc98 authored by Liam Middlebrook's avatar Liam Middlebrook Committed by Alexandre Julliard
Browse files

winevulkan: Harden calibrated_timestamps failure paths.


Addresses some comments that Zhiyi had made on the initial review thread.

Signed-off-by: default avatarLiam Middlebrook <lmiddlebrook@nvidia.com>
Signed-off-by: default avatarAndy Ritger <aritger@nvidia.com>
Signed-off-by: default avatarJoshua Ashton <joshua@froggi.es>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 91625e43
No related branches found
No related tags found
No related merge requests found
......@@ -1335,6 +1335,8 @@ VkResult WINAPI wine_vkGetCalibratedTimestampsEXT(VkDevice device,
}
res = device->funcs.p_vkGetCalibratedTimestampsEXT(device->device, timestamp_count, host_timestamp_infos, timestamps, max_deviation);
if (res != VK_SUCCESS)
return res;
for (i = 0; i < timestamp_count; i++)
timestamps[i] = convert_timestamp(host_timestamp_infos[i].timeDomain, timestamp_infos[i].timeDomain, timestamps[i]);
......@@ -1368,7 +1370,10 @@ VkResult WINAPI wine_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(VkPhysicalDe
res = phys_dev->instance->funcs.p_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(phys_dev->phys_dev, &host_time_domain_count, host_time_domains);
if (res != VK_SUCCESS)
{
heap_free(host_time_domains);
return res;
}
for (i = 0; i < host_time_domain_count; i++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment