Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3bd1d1c6
Commit
3bd1d1c6
authored
Feb 09, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Use BOOLEAN instead of BOOL in ordinal functions.
This should fix test failures on Windows.
parent
87e5bdaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
system.c
dlls/uxtheme/system.c
+4
-4
system.c
dlls/uxtheme/tests/system.c
+4
-4
No files found.
dlls/uxtheme/system.c
View file @
3bd1d1c6
...
...
@@ -1268,7 +1268,7 @@ void WINAPI RefreshImmersiveColorPolicyState(void)
* RETURNS
* Whether or not the system should use dark mode.
*/
BOOL
WINAPI
ShouldSystemUseDarkMode
(
void
)
BOOL
EAN
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
)
BOOL
EAN
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
)
BOOL
EAN
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
)
BOOL
EAN
WINAPI
IsDarkModeAllowedForWindow
(
HWND
hwnd
)
{
FIXME
(
"%p: stub
\n
"
,
hwnd
);
return
FALSE
;
...
...
dlls/uxtheme/tests/system.c
View file @
3bd1d1c6
...
...
@@ -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
BOOL
EAN
(
WINAPI
*
pShouldSystemUseDarkMode
)(
void
);
static
BOOL
EAN
(
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
;
BOOL
EAN
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
;
BOOL
EAN
result
;
LSTATUS
ls
;
if
(
!
pShouldAppsUseDarkMode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment