=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Use VkDeviceSize for buffer view offset and range (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Nov 15 16:42:52 CST 2018

Module: vkd3d
Branch: master
Commit: 06c3d1779e42dc12ddf29697a3f797c58df26c25
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=06c3d1779e42dc12ddf29697a3f797c58df26c25

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Nov 15 16:32:41 2018 +0100

vkd3d: Use VkDeviceSize for buffer view offset and range (Coverity).

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>


 libs/vkd3d/resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c
index bfbbad5..56af010 100644
--- a/libs/vkd3d/resource.c
+++ b/libs/vkd3d/resource.c
@@ -1482,8 +1482,8 @@ static bool vkd3d_create_buffer_view(struct d3d12_device *device,
     const struct vkd3d_vk_device_procs *vk_procs = &device->vk_procs;
     const struct vkd3d_format *format;
+    VkDeviceSize element_size;
     struct vkd3d_view *object;
-    unsigned int element_size;
     VkBufferView vk_view;
     if (view_format == DXGI_FORMAT_R32_TYPELESS && (flags & VKD3D_VIEW_RAW_BUFFER))

More information about the wine-cvs mailing list