[PATCH 2/2] Fix a test failure when no adapters are present

Paul Vriens Paul.Vriens.Wine at gmail.com
Thu Jan 28 09:44:08 CST 2010


---
 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..733aa12 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, /* VMware Standard VGA and VirtualBox */
+       "EnumAdapters failed, hr %#x\n", hr);
     if (FAILED(hr)) goto cleanup;
 
     hr = D3D10CoreCreateDevice(factory, adapter, 0, NULL, &device);
-- 
1.6.2.5


--------------040503070407090403060106--



More information about the wine-patches mailing list