Commit 42bba70a authored by Derek Lesho's avatar Derek Lesho Committed by Alexandre Julliard

mfplat: Fix asynchronous object creation from URL.

parent d5711a81
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment