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:
Derek Lesho 2020-10-20 09:21:11 -05:00 committed by Alexandre Julliard
parent d5711a8151
commit 42bba70a02
2 changed files with 2 additions and 2 deletions

View File

@ -5750,6 +5750,8 @@ static HRESULT resolver_handler_end_create(struct source_resolver *resolver, enu
if (!(queued_result = heap_alloc_zero(sizeof(*queued_result)))) if (!(queued_result = heap_alloc_zero(sizeof(*queued_result))))
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
queued_result->origin = origin;
IRtwqAsyncResult_GetObject(inner_result, &handler.handler); IRtwqAsyncResult_GetObject(inner_result, &handler.handler);
switch (origin) switch (origin)

View File

@ -343,12 +343,10 @@ static HRESULT WINAPI test_create_from_url_callback_Invoke(IMFAsyncCallback *ifa
object = NULL; object = NULL;
hr = IMFSourceResolver_EndCreateObjectFromURL(resolver, result, &obj_type, &object); hr = IMFSourceResolver_EndCreateObjectFromURL(resolver, result, &obj_type, &object);
todo_wine
ok(hr == S_OK, "Failed to create an object, hr %#x.\n", hr); ok(hr == S_OK, "Failed to create an object, hr %#x.\n", hr);
hr = IMFAsyncResult_GetObject(result, &object2); hr = IMFAsyncResult_GetObject(result, &object2);
ok(hr == S_OK, "Failed to get result object, hr %#x.\n", hr); ok(hr == S_OK, "Failed to get result object, hr %#x.\n", hr);
todo_wine
ok(object2 == object, "Unexpected object.\n"); ok(object2 == object, "Unexpected object.\n");
if (object) if (object)