[PATCH] winegstreamer: Fix assert condition.
4 Jun
2021
4 Jun
'21
6:18 a.m.
Signed-off-by: Nikolay Sivov <nsivov(a)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
1654
Age (days ago)
1654
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov