uxtheme/tests: Use the OpenThemeDataForDpi() function pointer.

OpenThemeDataForDpi() is not available in Windows 10 1607 and older.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-09-02 10:29:51 +02:00 committed by Alexandre Julliard
parent 5e0c1ce443
commit 568143ff97

View file

@ -657,7 +657,7 @@ static void test_OpenThemeDataForDpi(void)
is_theme_active = IsThemeActive();
SetLastError(0xdeadbeef);
htheme = OpenThemeDataForDpi(NULL, WC_BUTTONW, 96);
htheme = pOpenThemeDataForDpi(NULL, WC_BUTTONW, 96);
if (is_theme_active)
{
ok(!!htheme, "Got a NULL handle.\n");