uxtheme: Use BOOLEAN instead of BOOL in ordinal functions.
This should fix test failures on Windows.
This commit is contained in:
parent
87e5bdaa4a
commit
3bd1d1c60d
2 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue