Nikolay Sivov : wined3d: Handle null semantics in stream output description cache.

Alexandre Julliard julliard at winehq.org
Thu Sep 9 15:42:31 CDT 2021


Module: wine
Branch: master
Commit: a408fdf5f52a4de94ab06318bfa86a205bd9a2c2
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=a408fdf5f52a4de94ab06318bfa86a205bd9a2c2

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Sep  9 18:58:03 2021 +0300

wined3d: Handle null semantics in stream output description cache.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/device.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index d2147447ee0..07bd7c65ad7 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -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;




More information about the wine-cvs mailing list