vkd3d-utils: Store the actual serialisation return value in get_blob_part().

This commit is contained in:
Andrey Gusev 2024-09-29 17:44:55 +03:00 committed by Henri Verbeet
parent 6822f1fe6c
commit c94eac2d33
Notes: Henri Verbeet 2024-09-30 21:07:21 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1131

View File

@ -811,7 +811,7 @@ static HRESULT get_blob_part(const void *data, SIZE_T data_size,
{
dst_dxbc = sections[0].data;
}
else if ((ret = vkd3d_shader_serialize_dxbc(section_count, sections, &dst_dxbc, NULL) < 0))
else if ((ret = vkd3d_shader_serialize_dxbc(section_count, sections, &dst_dxbc, NULL)) < 0)
{
WARN("Failed to serialise DXBC, ret %d.\n", ret);
hr = hresult_from_vkd3d_result(ret);