Nikolay Sivov : mf/tests: Fix tests crashes.
Alexandre Julliard
julliard at winehq.org
Tue Sep 8 15:36:16 CDT 2020
Module: wine
Branch: master
Commit: 9c898dcc1944105abbaeaeb3d53ce6f7f6113956
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9c898dcc1944105abbaeaeb3d53ce6f7f6113956
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Sep 8 11:05:57 2020 +0300
mf/tests: Fix tests crashes.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mf/tests/mf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/mf/tests/mf.c b/dlls/mf/tests/mf.c
index f01385cc46..7013939ab0 100644
--- a/dlls/mf/tests/mf.c
+++ b/dlls/mf/tests/mf.c
@@ -1451,7 +1451,10 @@ todo_wine
return;
hr = IMFMediaSource_CreatePresentationDescriptor(source, &pd);
+todo_wine
ok(hr == S_OK, "Failed to create descriptor, hr %#x.\n", hr);
+ if (FAILED(hr))
+ return;
hr = IMFPresentationDescriptor_GetStreamDescriptorByIndex(pd, 0, &selected, &sd);
ok(hr == S_OK, "Failed to get stream descriptor, hr %#x.\n", hr);
More information about the wine-cvs
mailing list