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

Francois Gouget fgouget at codeweavers.com
Thu Sep 2 03:29:51 CDT 2021


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

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 dlls/uxtheme/tests/system.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index f9bf371e6bf..b088a7a050e 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -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");
-- 
2.30.2



More information about the wine-devel mailing list