[PATCH 4/7] d3d9/tests: Port test_wndproc to d3d9ex (v2).

Henri Verbeet hverbeet at gmail.com
Mon Oct 6 08:49:12 CDT 2014


On 6 October 2014 13:42, Stefan Dösinger <stefan at codeweavers.com> wrote:
> +    ret = pEnumDisplaySettingsExA(NULL, ENUM_CURRENT_SETTINGS, &orig_mode, 0);
Why the Ex versions here?

> +    user32_handle = GetModuleHandleA("user32.dll");
> +    pEnumDisplaySettingsExA = (void*)GetProcAddress(user32_handle, "EnumDisplaySettingsExA");
> +    pChangeDisplaySettingsExA = (void*)GetProcAddress(user32_handle, "ChangeDisplaySettingsExA");
I also suspect we don't need to get these through GetProcAddress() on
any setup where we still run the tests.



More information about the wine-devel mailing list