Module: wine Branch: master Commit: 7cc429312eef0aa6d33fc1e204c6903cd6b63f9f URL: http://source.winehq.org/git/wine.git/?a=commit;h=7cc429312eef0aa6d33fc1e204...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Mon Feb 1 09:35:22 2010 +0100
d3d10core/tests: Fix a test failure when no adapters are present.
---
dlls/d3d10core/tests/device.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c index 122a154..7ad8bb6 100644 --- a/dlls/d3d10core/tests/device.c +++ b/dlls/d3d10core/tests/device.c @@ -35,7 +35,9 @@ static ID3D10Device *create_device(void) 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 = D3D10CoreCreateDevice(factory, adapter, 0, NULL, &device);