Commit 3bd1d1c6 authored by Alexandre Julliard's avatar Alexandre Julliard

uxtheme: Use BOOLEAN instead of BOOL in ordinal functions.

This should fix test failures on Windows.
parent 87e5bdaa
......@@ -1268,7 +1268,7 @@ void WINAPI RefreshImmersiveColorPolicyState(void)
* RETURNS
* Whether or not the system should use dark mode.
*/
BOOL WINAPI ShouldSystemUseDarkMode(void)
BOOLEAN WINAPI ShouldSystemUseDarkMode(void)
{
DWORD light_theme = TRUE, light_theme_size = sizeof(light_theme);
......@@ -1285,7 +1285,7 @@ BOOL WINAPI ShouldSystemUseDarkMode(void)
* RETURNS
* Whether or not apps should use dark mode.
*/
BOOL WINAPI ShouldAppsUseDarkMode(void)
BOOLEAN WINAPI ShouldAppsUseDarkMode(void)
{
DWORD light_theme = TRUE, light_theme_size = sizeof(light_theme);
......@@ -1300,7 +1300,7 @@ BOOL WINAPI ShouldAppsUseDarkMode(void)
* AllowDarkModeForWindow (UXTHEME.133)
*
*/
BOOL WINAPI AllowDarkModeForWindow(HWND hwnd, BOOL allow)
BOOLEAN WINAPI AllowDarkModeForWindow(HWND hwnd, BOOLEAN allow)
{
FIXME("%p %d: stub\n", hwnd, allow);
return FALSE;
......@@ -1320,7 +1320,7 @@ int WINAPI SetPreferredAppMode(int app_mode)
* IsDarkModeAllowedForWindow (UXTHEME.137)
*
*/
BOOL WINAPI IsDarkModeAllowedForWindow(HWND hwnd)
BOOLEAN WINAPI IsDarkModeAllowedForWindow(HWND hwnd)
{
FIXME("%p: stub\n", hwnd);
return FALSE;
......
......@@ -50,8 +50,8 @@ static HDC (WINAPI *pGetBufferedPaintTargetDC)(HPAINTBUFFER);
static HRESULT (WINAPI *pGetBufferedPaintTargetRect)(HPAINTBUFFER, RECT *);
static HRESULT (WINAPI *pGetThemeIntList)(HTHEME, int, int, int, INTLIST *);
static HRESULT (WINAPI *pGetThemeTransitionDuration)(HTHEME, int, int, int, int, DWORD *);
static BOOL (WINAPI *pShouldSystemUseDarkMode)(void);
static BOOL (WINAPI *pShouldAppsUseDarkMode)(void);
static BOOLEAN (WINAPI *pShouldSystemUseDarkMode)(void);
static BOOLEAN (WINAPI *pShouldAppsUseDarkMode)(void);
static LONG (WINAPI *pDisplayConfigGetDeviceInfo)(DISPLAYCONFIG_DEVICE_INFO_HEADER *);
static LONG (WINAPI *pDisplayConfigSetDeviceInfo)(DISPLAYCONFIG_DEVICE_INFO_HEADER *);
......@@ -2680,7 +2680,7 @@ static void test_theme(void)
static void test_ShouldSystemUseDarkMode(void)
{
DWORD light_theme, light_theme_size = sizeof(light_theme), last_error;
BOOL result;
BOOLEAN result;
LSTATUS ls;
if (!pShouldSystemUseDarkMode)
......@@ -2709,7 +2709,7 @@ static void test_ShouldSystemUseDarkMode(void)
static void test_ShouldAppsUseDarkMode(void)
{
DWORD light_theme, light_theme_size = sizeof(light_theme), last_error;
BOOL result;
BOOLEAN result;
LSTATUS ls;
if (!pShouldAppsUseDarkMode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment