[PATCH] winegstreamer: Fix assert condition.

Nikolay Sivov nsivov at codeweavers.com
Fri Jun 4 01:18:16 CDT 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

Count can potentially reach 6, there is 5 raw types + 1 base type.

 dlls/winegstreamer/media_source.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winegstreamer/media_source.c b/dlls/winegstreamer/media_source.c
index e153c8e9161..d3d156fc9cb 100644
--- a/dlls/winegstreamer/media_source.c
+++ b/dlls/winegstreamer/media_source.c
@@ -832,7 +832,7 @@ static HRESULT media_stream_init_desc(struct media_stream *stream)
             type_count = 1;
     }
 
-    assert(type_count < ARRAY_SIZE(stream_types));
+    assert(type_count <= ARRAY_SIZE(stream_types));
 
     if (!type_count)
     {
-- 
2.30.2




More information about the wine-devel mailing list