mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Validate signal_event_pfn.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
6a32ad8913
commit
ebca1d3396
@@ -221,6 +221,11 @@ static HRESULT vkd3d_instance_init(struct vkd3d_instance *instance,
|
||||
VkResult vr;
|
||||
HRESULT hr;
|
||||
|
||||
if (!create_info->signal_event_pfn)
|
||||
{
|
||||
ERR("Invalid signal event function pointer.\n");
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
if (!create_info->create_thread_pfn != !create_info->join_thread_pfn)
|
||||
{
|
||||
ERR("Invalid create/join thread function pointers.\n");
|
||||
|
Reference in New Issue
Block a user