mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Translate pthread error numbers to HRESULTs.
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
f3ddbe0342
commit
d539adaff8
@@ -245,7 +245,7 @@ static HRESULT d3d12_heap_map(struct d3d12_heap *heap, UINT64 offset, void **dat
|
||||
{
|
||||
ERR("Failed to lock mutex, error %d.\n", rc);
|
||||
*data = NULL;
|
||||
return E_FAIL;
|
||||
return hresult_from_errno(rc);
|
||||
}
|
||||
|
||||
if (!heap->map_ptr)
|
||||
@@ -365,7 +365,7 @@ static HRESULT d3d12_heap_init(struct d3d12_heap *heap,
|
||||
if ((rc = pthread_mutex_init(&heap->mutex, NULL)))
|
||||
{
|
||||
ERR("Failed to initialize mutex, error %d.\n", rc);
|
||||
return E_FAIL;
|
||||
return hresult_from_errno(rc);
|
||||
}
|
||||
|
||||
if (FAILED(hr = vkd3d_allocate_device_memory(device, &heap->desc.Properties,
|
||||
|
||||
Reference in New Issue
Block a user