Nikolay Sivov : mfplat/tests: Remove unnecessary check (Coverity).

Alexandre Julliard julliard at winehq.org
Wed Sep 15 16:21:33 CDT 2021


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Sep 15 20:20:22 2021 +0300

mfplat/tests: Remove unnecessary check (Coverity).

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

---

 dlls/mfplat/tests/mfplat.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
index 54af1ee151d..541459c715b 100644
--- a/dlls/mfplat/tests/mfplat.c
+++ b/dlls/mfplat/tests/mfplat.c
@@ -877,8 +877,6 @@ todo_wine
     for (i = 0; i < sample_count; ++i)
     {
         hr = IMFMediaStream_RequestSample(video_stream, NULL);
-        if (i == sample_count)
-            break;
         ok(hr == S_OK, "Failed to request sample %u, hr %#x.\n", i + 1, hr);
         if (hr != S_OK)
             break;




More information about the wine-cvs mailing list