Paul Vriens : dxgi/tests: Fix a test failure when no adapters are present.
Module: wine Branch: master Commit: a9113f7b3ca3209be08d63a28442394494182831 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9113f7b3ca3209be08d63a284... Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Mon Feb 1 09:35:30 2010 +0100 dxgi/tests: Fix a test failure when no adapters are present. --- dlls/dxgi/tests/device.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c index d4ca50b..4d2ac14 100644 --- a/dlls/dxgi/tests/device.c +++ b/dlls/dxgi/tests/device.c @@ -36,7 +36,9 @@ static IDXGIDevice *create_device(HMODULE d3d10core) if (FAILED(hr)) goto cleanup; hr = IDXGIFactory_EnumAdapters(factory, 0, &adapter); - ok(SUCCEEDED(hr), "EnumAdapters failed, hr %#x\n", hr); + ok(SUCCEEDED(hr) || + hr == DXGI_ERROR_NOT_FOUND, /* Some VMware and VirtualBox */ + "EnumAdapters failed, hr %#x\n", hr); if (FAILED(hr)) goto cleanup; hr = DXGID3D10CreateDevice(d3d10core, factory, adapter, 0, NULL, (void **)&device);
participants (1)
-
Alexandre Julliard