wined3d: Handle null semantics in stream output description cache.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-09-09 18:58:03 +03:00 committed by Alexandre Julliard
parent 07beacb742
commit a408fdf5f5

View file

@ -5620,7 +5620,9 @@ static int wined3d_so_desc_compare(const void *key, const struct wine_rb_entry *
if ((ret = (a->stream_idx - b->stream_idx)))
return ret;
if ((ret = strcmp(a->semantic_name, b->semantic_name)))
if ((ret = (!a->semantic_name - !b->semantic_name)))
return ret;
if (a->semantic_name && (ret = strcmp(a->semantic_name, b->semantic_name)))
return ret;
if ((ret = (a->semantic_idx - b->semantic_idx)))
return ret;