From 7cd3b9c9174f28db52bf7ec9eff2129d4d459193 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Fri, 25 Feb 2022 14:52:55 +0100 Subject: [PATCH] idl: Fix type of D3D12_ERROR defines. Signed-off-by: Hans-Kristian Arntzen --- include/vkd3d_d3d12.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vkd3d_d3d12.idl b/include/vkd3d_d3d12.idl index ad1738ef..a63dc32c 100644 --- a/include/vkd3d_d3d12.idl +++ b/include/vkd3d_d3d12.idl @@ -26,11 +26,11 @@ cpp_quote("#ifndef _D3D12_CONSTANTS") cpp_quote("#define _D3D12_CONSTANTS") cpp_quote("#ifndef D3D12_ERROR_ADAPTER_NOT_FOUND") -cpp_quote("#define D3D12_ERROR_ADAPTER_NOT_FOUND 0x887e0001") +cpp_quote("#define D3D12_ERROR_ADAPTER_NOT_FOUND ((HRESULT)0x887e0001)") cpp_quote("#endif") cpp_quote("#ifndef D3D12_ERROR_DRIVER_VERSION_MISMATCH") -cpp_quote("#define D3D12_ERROR_DRIVER_VERSION_MISMATCH 0x887e0002") +cpp_quote("#define D3D12_ERROR_DRIVER_VERSION_MISMATCH ((HRESULT)0x887e0002)") cpp_quote("#endif") const UINT D3D12_CS_TGSM_REGISTER_COUNT = 8192;