[PATCH 1/2] dxgi/tests: Add test for enumerating display adapters using SetupAPI.

Józef Kucia joseph.kucia at gmail.com
Tue Dec 4 09:22:51 CST 2018


On Tue, Dec 4, 2018 at 4:14 PM Henri Verbeet <hverbeet at gmail.com> wrote:
>
> On Mon, 3 Dec 2018 at 22:22, Józef Kucia <jkucia at codeweavers.com> wrote:
> > +            /* LUID */
> > +            size = 0;
> > +            property_type = DEVPROP_TYPE_EMPTY;
> > +            ret = SetupDiGetDevicePropertyW(dev_info, &data, &DEVPROPKEY_DISPLAY_ADAPTER_LUID,
> > +                    &property_type, NULL, 0, &size, 0);
> > +            last_error = GetLastError();
> > +            todo_wine
> > +            ok(!ret && last_error == ERROR_INSUFFICIENT_BUFFER,
> > +                    "Failed to get device property size, ret %#x, last_error %#x.\n", ret, last_error);
> This fails here on Windows:
>
>     dxgi.c:879: Test failed: Failed to get device property size, ret
> 0, last_error 0x490.
>     dxgi.c:927: Test failed: Failed to find display adapter for
> IDXGIAdapter 0 (L"AMD Radeon HD 6310 Graphics" 1002:9802).

It's possible this properly is available only on Windows 10.



More information about the wine-devel mailing list