dxgi/tests: Fix test failure on Windows 7.
Huw Davies
huw at codeweavers.com
Thu Jan 12 09:16:18 CST 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/dxgi/tests/device.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c
index db4c57e..216fb90 100644
--- a/dlls/dxgi/tests/device.c
+++ b/dlls/dxgi/tests/device.c
@@ -1616,8 +1616,9 @@ static void test_set_fullscreen(void)
ok(SUCCEEDED(hr), "CreateSwapChain failed, hr %#x.\n", hr);
check_swapchain_fullscreen_state(swapchain, &initial_state);
hr = IDXGISwapChain_SetFullscreenState(swapchain, TRUE, NULL);
- ok(SUCCEEDED(hr) || hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE, "SetFullscreenState failed, hr %#x.\n", hr);
- if (hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE)
+ ok(SUCCEEDED(hr) || hr == DXGI_ERROR_NOT_CURRENTLY_AVAILABLE ||
+ hr == DXGI_ERROR_UNSUPPORTED, "SetFullscreenState failed, hr %#x.\n", hr);
+ if (FAILED(hr))
{
skip("Could not change fullscreen state.\n");
goto done;
--
2.10.2
More information about the wine-patches
mailing list