From e82e7adedc71f3a2cb3f8a4c7af5ffbfaad48885 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Wed, 27 Jan 2016 08:20:28 +0100
Subject: uxthemegtk: Add export for OpenThemeDataEx.

---
 dlls/uxtheme-gtk/uxtheme-gtk.spec | 2 +-
 dlls/uxtheme-gtk/uxtheme.c        | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/dlls/uxtheme-gtk/uxtheme-gtk.spec b/dlls/uxtheme-gtk/uxtheme-gtk.spec
index 4acc0fa..c4a619a 100644
--- a/dlls/uxtheme-gtk/uxtheme-gtk.spec
+++ b/dlls/uxtheme-gtk/uxtheme-gtk.spec
@@ -38,7 +38,7 @@
 46 stub -noname ClassicAdjustWindowRectEx
 48 stub -noname GetThemeParseErrorInfo
 60 stub -noname CreateThemeDataFromObjects
-61 stub OpenThemeDataEx
+61 stdcall OpenThemeDataEx(ptr wstr long)
 62 stub -noname ServerClearStockObjects
 63 stub -noname MarkSelection
 
diff --git a/dlls/uxtheme-gtk/uxtheme.c b/dlls/uxtheme-gtk/uxtheme.c
index b520f6f..15fc231 100644
--- a/dlls/uxtheme-gtk/uxtheme.c
+++ b/dlls/uxtheme-gtk/uxtheme.c
@@ -501,14 +501,14 @@ BOOL WINAPI IsThemeDialogTextureEnabled(HWND hwnd)
     return TRUE; /* Always enabled */
 }
 
-HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
+HTHEME WINAPI OpenThemeDataEx(HWND hwnd, LPCWSTR classlist, DWORD flags)
 {
     WCHAR *start, *tok, buf[CLASSLIST_MAXLEN];
     uxgtk_theme_t *theme;
     WORD fpu_flags;
     int i;
 
-    TRACE("(%p, %s)\n", hwnd, debugstr_w(classlist));
+    TRACE("(%p, %s, %x)\n", hwnd, debugstr_w(classlist), flags);
 
     if (libgtk3 == NULL)
     {
@@ -562,6 +562,11 @@ found:
     return theme;
 }
 
+HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
+{
+    return OpenThemeDataEx(hwnd, classlist, 0);
+}
+
 void WINAPI SetThemeAppProperties(DWORD flags)
 {
     TRACE("(%u)\n", flags);
-- 
2.6.4

