From: Francois Gouget fgouget@codeweavers.com
The refcount is 0 on Windows 10 1909+ so consider the 1709 and 1809 results to be buggy.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54299 --- dlls/d3d12/tests/d3d12.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d12/tests/d3d12.c b/dlls/d3d12/tests/d3d12.c index 0d3deafda45..e57c98e96e7 100644 --- a/dlls/d3d12/tests/d3d12.c +++ b/dlls/d3d12/tests/d3d12.c @@ -885,7 +885,8 @@ static void test_create_device(void) hr = D3D12CreateDevice((IUnknown *)adapter, D3D_FEATURE_LEVEL_11_0, &IID_ID3D12Device, (void **)&device); ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); refcount = IDXGIAdapter_Release(adapter); - ok(refcount >= 1, "Got unexpected refcount %lu.\n", refcount); + ok(refcount == 0 || broken(refcount >= 1 /* win10 1709 & 1809 */), + "Got unexpected refcount %lu.\n", refcount); adapter = NULL;
luid = ID3D12Device_GetAdapterLuid(device);