vkd3d: Fix return value when WRITE_WATCH is forbidden

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-03-18 14:42:22 +00:00 committed by Hans-Kristian Arntzen
parent aa12817ccf
commit 258173a0a7
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ static HRESULT vkd3d_memory_allocation_init(struct vkd3d_memory_allocation *allo
allocation->flags |= VKD3D_ALLOCATION_FLAG_ALLOW_WRITE_WATCH;
if (!(host_ptr = vkd3d_allocate_write_watch_pointer(&info->heap_properties, memory_requirements.size)))
return E_FAIL;
return E_INVALIDARG;
}
if (host_ptr)