On 6 October 2014 13:42, Stefan Dösinger stefan@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.