From 258173a0a72157d70aa862aba2e8faf242b52ffa Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 18 Mar 2021 14:42:22 +0000 Subject: [PATCH] vkd3d: Fix return value when WRITE_WATCH is forbidden Signed-off-by: Joshua Ashton --- libs/vkd3d/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/vkd3d/memory.c b/libs/vkd3d/memory.c index 919154cf..72dc49d7 100644 --- a/libs/vkd3d/memory.c +++ b/libs/vkd3d/memory.c @@ -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)