wined3d: Propagate HRESULTs in wined3d_swapchain_resize_target().

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-11-23 14:41:16 +01:00 committed by Alexandre Julliard
parent 650abc567a
commit 74351205ac
1 changed files with 1 additions and 1 deletions

View File

@ -1358,7 +1358,7 @@ HRESULT CDECL wined3d_swapchain_resize_target(struct wined3d_swapchain *swapchai
&actual_mode, NULL))) &actual_mode, NULL)))
{ {
ERR("Failed to get display mode, hr %#x.\n", hr); ERR("Failed to get display mode, hr %#x.\n", hr);
return WINED3DERR_INVALIDCALL; return hr;
} }
SetRect(&window_rect, 0, 0, actual_mode.width, actual_mode.height); SetRect(&window_rect, 0, 0, actual_mode.width, actual_mode.height);