[PATCH] uxtheme: Add a stub for IsCompositionActive().

Sergio Gómez Del Real sergio.g.delreal at gmail.com
Wed Oct 18 08:40:10 CDT 2017


The application Fidibo (https://bugs.winehq.org/show_bug.cgi?id=43770)
crashes due to missing of the WINAPI function IsCompositionActive, in
the uxtheme module. Implement a stub that trivially returns false.

Signed-off-by: Sergio Gómez Del Real <sdelreal at codeweavers.com>
---
 dlls/uxtheme/system.c     | 19 +++++++++++++++++++
 dlls/uxtheme/uxtheme.spec |  1 +
 include/uxtheme.h         |  1 +
 3 files changed, 21 insertions(+)

diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c
index 625be247e9..ebcd4429e9 100644
--- a/dlls/uxtheme/system.c
+++ b/dlls/uxtheme/system.c
@@ -562,6 +562,25 @@ BOOL WINAPI IsThemeActive(void)
     return bThemeActive;
 }
 
+/************************************************************
+*       IsCompositionActive   (UXTHEME.@)
+*
+* RETURNS
+*   Success: TRUE
+*   Failure: FALSE
+*
+* BUGS
+*   Unimplemented
+*/
+BOOL WINAPI IsCompositionActive(void)
+{
+    FIXME(": stub\n");
+
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+
+    return FALSE;
+}
+
 /***********************************************************************
  *      EnableTheming                                       (UXTHEME.@)
  *
diff --git a/dlls/uxtheme/uxtheme.spec b/dlls/uxtheme/uxtheme.spec
index 7d2a7d769d..5b68fdee1b 100644
--- a/dlls/uxtheme/uxtheme.spec
+++ b/dlls/uxtheme/uxtheme.spec
@@ -100,6 +100,7 @@
 @ stdcall GetWindowTheme(ptr)
 @ stdcall HitTestThemeBackground(ptr long long long long ptr long int64 ptr)
 @ stdcall IsAppThemed()
+@ stdcall IsCompositionActive()
 @ stdcall IsThemeActive()
 @ stdcall IsThemeBackgroundPartiallyTransparent(ptr long long)
 @ stdcall IsThemeDialogTextureEnabled(ptr)
diff --git a/include/uxtheme.h b/include/uxtheme.h
index 76063069cc..374b5302d3 100644
--- a/include/uxtheme.h
+++ b/include/uxtheme.h
@@ -209,6 +209,7 @@ HTHEME WINAPI GetWindowTheme(HWND);
 HRESULT WINAPI HitTestThemeBackground(HTHEME,HDC,int,int,DWORD,const RECT*,
                                       HRGN,POINT,WORD*);
 BOOL WINAPI IsAppThemed(void);
+BOOL WINAPI IsCompositionActive(void);
 BOOL WINAPI IsThemeActive(void);
 BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME,int,int);
 BOOL WINAPI IsThemeDialogTextureEnabled(HWND);
-- 
2.11.0




More information about the wine-patches mailing list