Nikolay Sivov (@nsivov) commented about dlls/d2d1/tests/d2d1.c:
release_test_context(&ctx);
return;
- }
- /* Test user-provided DXGI device */
- hr = ID2D1Factory1_CreateDevice(ctx.factory1, ctx.device, &device);
- ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
- hr = ID2D1Device_QueryInterface(device, &IID_ID2D1Device2, (void **)&device2);
- if (FAILED(hr))
- {
win_skip("ID2D1Device2 is not supported.\n");
ID2D1Device_Release(device);
release_test_context(&ctx);
return;
- }
- ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
Here you could check for factory3 being null, ID2D1Device2 won't be supported without ID2D1Factory3.