demos: Check return value of ID3D12Fence_SetEventOnCompletion() (Coverity).

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-10-24 13:16:25 +02:00 committed by Alexandre Julliard
parent 049d21ad7a
commit a96cfa32a1
2 changed files with 4 additions and 2 deletions

View File

@ -218,7 +218,8 @@ static void cxg_wait_for_previous_frame(struct cx_gears *cxg)
if (ID3D12Fence_GetCompletedValue(fence->fence) < v) if (ID3D12Fence_GetCompletedValue(fence->fence) < v)
{ {
ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event); hr = ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event);
assert(SUCCEEDED(hr));
demo_wait_event(fence->event, INFINITE); demo_wait_event(fence->event, INFINITE);
} }

View File

@ -142,7 +142,8 @@ static void cxt_wait_for_previous_frame(struct cx_triangle *cxt)
if (ID3D12Fence_GetCompletedValue(fence->fence) < v) if (ID3D12Fence_GetCompletedValue(fence->fence) < v)
{ {
ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event); hr = ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event);
assert(SUCCEEDED(hr));
demo_wait_event(fence->event, INFINITE); demo_wait_event(fence->event, INFINITE);
} }