mfreadwrite: Simplify iteration through streams.
commit06366bd16b82b79b21a698808c6cb3744fbba151
authorGiovanni Mascellani <gmascellani@codeweavers.com>
Fri, 26 Mar 2021 08:07:37 +0000 (26 09:07 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 26 Mar 2021 15:48:30 +0000 (26 16:48 +0100)
tree7658fc005533fd7085f92055821e67325b772b03
parentdb509cf4fe862ed13beccd0d281b854aa905a45e
mfreadwrite: Simplify iteration through streams.

This also fixes a bug happening when the reader has only one stream,
in which case the iteration body was not even executed once.

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/reader.c
dlls/mfreadwrite/tests/mfplat.c