mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/dxil: Add a null check for the type when validating non-void operands.
This commit is contained in:
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
@@ -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))
|
if (info_type != 'H' && info_type != 'v' && !sm6_value_is_register(value))
|
||||||
return false;
|
return false;
|
||||||
|
if (!type && info_type != 'v')
|
||||||
|
return false;
|
||||||
|
|
||||||
switch (info_type)
|
switch (info_type)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user