vkd3d-shader/dxil: Add a null check for the type when validating non-void operands.

This commit is contained in:
Conor McCarthy
2025-06-19 00:09:57 +10:00
committed by Henri Verbeet
parent c3110d2f94
commit 9d490b83d4
Notes: Henri Verbeet 2025-06-19 20:52:18 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1573

View File

@@ -6696,6 +6696,8 @@ static bool sm6_parser_validate_operand_type(struct sm6_parser *sm6, const struc
if (info_type != 'H' && info_type != 'v' && !sm6_value_is_register(value))
return false;
if (!type && info_type != 'v')
return false;
switch (info_type)
{