wined3d: Return hr result in wined3d_event_query_create.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2017-07-12 15:03:02 +02:00 committed by Alexandre Julliard
parent 860c1578e6
commit c683372bca
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@ static HRESULT wined3d_event_query_create(struct wined3d_device *device,
{
WARN("Event queries not supported.\n");
HeapFree(GetProcessHeap(), 0, object);
return WINED3DERR_NOTAVAILABLE;
return hr;
}
wined3d_query_init(&object->query, device, type, &object->signalled,