1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

mfreadwrite/tests: Add return value test (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-09-30 13:55:06 +03:00 committed by Alexandre Julliard
parent 937b585996
commit 82584160d4

View File

@ -438,11 +438,13 @@ static struct test_media_stream *create_test_stream(DWORD stream_index, IMFMedia
struct test_media_stream *stream;
IMFPresentationDescriptor *pd;
BOOL selected;
HRESULT hr;
stream = heap_alloc_zero(sizeof(*stream));
stream->IMFMediaStream_iface.lpVtbl = &test_media_stream_vtbl;
stream->refcount = 1;
MFCreateEventQueue(&stream->event_queue);
hr = MFCreateEventQueue(&stream->event_queue);
ok(hr == S_OK, "Failed to create event queue, hr %#x.\n", hr);
stream->source = source;
IMFMediaSource_AddRef(stream->source);
stream->is_new = TRUE;