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

This commit is contained in:
Andrey Gusev 2024-09-29 17:44:55 +03:00 committed by Henri Verbeet
parent c94eac2d33
commit f28d39b609
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

@ -942,7 +942,7 @@ HRESULT WINAPI D3DStripShader(const void *data, SIZE_T data_size, UINT flags, ID
sections[section_count++] = *src_section; sections[section_count++] = *src_section;
} }
if ((ret = vkd3d_shader_serialize_dxbc(section_count, sections, &dst_dxbc, NULL) < 0)) if ((ret = vkd3d_shader_serialize_dxbc(section_count, sections, &dst_dxbc, NULL)) < 0)
{ {
WARN("Failed to serialise DXBC, ret %d.\n", ret); WARN("Failed to serialise DXBC, ret %d.\n", ret);
hr = hresult_from_vkd3d_result(ret); hr = hresult_from_vkd3d_result(ret);