mfplat: Fix asynchronous object creation from URL.
Signed-off-by: Derek Lesho <dlesho@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d5711a8151
commit
42bba70a02
|
@ -5750,6 +5750,8 @@ static HRESULT resolver_handler_end_create(struct source_resolver *resolver, enu
|
|||
if (!(queued_result = heap_alloc_zero(sizeof(*queued_result))))
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
queued_result->origin = origin;
|
||||
|
||||
IRtwqAsyncResult_GetObject(inner_result, &handler.handler);
|
||||
|
||||
switch (origin)
|
||||
|
|
|
@ -343,12 +343,10 @@ static HRESULT WINAPI test_create_from_url_callback_Invoke(IMFAsyncCallback *ifa
|
|||
|
||||
object = NULL;
|
||||
hr = IMFSourceResolver_EndCreateObjectFromURL(resolver, result, &obj_type, &object);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "Failed to create an object, hr %#x.\n", hr);
|
||||
|
||||
hr = IMFAsyncResult_GetObject(result, &object2);
|
||||
ok(hr == S_OK, "Failed to get result object, hr %#x.\n", hr);
|
||||
todo_wine
|
||||
ok(object2 == object, "Unexpected object.\n");
|
||||
|
||||
if (object)
|
||||
|
|
Loading…
Reference in New Issue