mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d-shader: Fix uninitialized error code in vkd3d_shader_parser_init().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2d8e2fbe86
commit
9e8dc13ba3
@ -41,9 +41,9 @@ static HRESULT vkd3d_shader_parser_init(struct vkd3d_shader_parser *parser,
|
||||
if (!(parser->data = shader_sm4_init(shader_desc->byte_code,
|
||||
shader_desc->byte_code_size, &shader_desc->output_signature)))
|
||||
{
|
||||
WARN("Failed to initialize shader parser, hr %#x.\n", hr);
|
||||
WARN("Failed to initialize shader parser.\n");
|
||||
free_shader_desc(shader_desc);
|
||||
return hr;
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
shader_sm4_read_header(parser->data, &parser->ptr, &parser->shader_version);
|
||||
|
Loading…
x
Reference in New Issue
Block a user