vkd3d-shader/dxil: Check for src param allocation failure in sm6_parser_emit_binop().

This commit is contained in:
Conor McCarthy 2024-02-14 00:10:12 +10:00 committed by Alexandre Julliard
parent 5a76cedf87
commit 217eb06f37
Notes: Alexandre Julliard 2024-02-14 23:27:12 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/647

View File

@ -3529,7 +3529,8 @@ static void sm6_parser_emit_binop(struct sm6_parser *sm6, const struct dxil_reco
"Ignoring flags %#"PRIx64" for a binary operation.", flags); "Ignoring flags %#"PRIx64" for a binary operation.", flags);
} }
src_params = instruction_src_params_alloc(ins, 2, sm6); if (!(src_params = instruction_src_params_alloc(ins, 2, sm6)))
return;
src_param_init_from_value(&src_params[0], a); src_param_init_from_value(&src_params[0], a);
src_param_init_from_value(&src_params[1], b); src_param_init_from_value(&src_params[1], b);
if (code == BINOP_SUB) if (code == BINOP_SUB)