mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Validate WCHAR size.
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:
parent
709b866001
commit
4605d1275c
@ -184,6 +184,11 @@ static HRESULT vkd3d_instance_init(struct vkd3d_instance *instance,
|
||||
ERR("Invalid create/join thread function pointers.\n");
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
if (create_info->wchar_size != 2 && create_info->wchar_size != 4)
|
||||
{
|
||||
ERR("Unexpected WCHAR size %zu.\n", create_info->wchar_size);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
instance->signal_event = create_info->signal_event_pfn;
|
||||
instance->create_thread = create_info->create_thread_pfn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user