mfreadwrite/tests: Fix testing of a source with one stream.
commitc35adbac8fef689f6da67afcc4468d8f4989da3d
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Wed, 31 Mar 2021 07:41:20 +0000 (31 09:41 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 6 Apr 2021 20:46:12 +0000 (6 22:46 +0200)
treec936e4313339d4882c232c30266ab7e7a9113ae7
parent842987cd12057cfe757a4a1df03945840b4cf8c9
mfreadwrite/tests: Fix testing of a source with one stream.

Even when a lower stream count was requested, most of the implementation
still used ARRAY_SIZE(source->streams) as actual count, so the
implemented behaviour was not the desired one. Also, it implied
undefined behaviour.

Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/mfreadwrite/tests/mfplat.c