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
50005fee
Commit
50005fee
authored
Sep 22, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Sep 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Disallow EnableTheming() to enable theming.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2cfd5c08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
system.c
dlls/uxtheme/system.c
+4
-8
system.c
dlls/uxtheme/tests/system.c
+0
-1
No files found.
dlls/uxtheme/system.c
View file @
50005fee
...
...
@@ -571,20 +571,16 @@ BOOL WINAPI IsCompositionActive(void)
HRESULT
WINAPI
EnableTheming
(
BOOL
fEnable
)
{
HKEY
hKey
;
WCHAR
szEnabled
[]
=
L"0"
;
TRACE
(
"(%d)
\n
"
,
fEnable
);
if
(
fEnable
!=
bThemeActive
)
{
if
(
fEnable
)
UXTHEME_BackupSystemMetrics
();
else
UXTHEME_RestoreSystemMetrics
();
if
(
bThemeActive
&&
!
fEnable
)
{
UXTHEME_RestoreSystemMetrics
();
UXTHEME_SaveSystemMetrics
();
bThemeActive
=
fEnable
;
if
(
bThemeActive
)
szEnabled
[
0
]
=
'1'
;
if
(
!
RegOpenKeyW
(
HKEY_CURRENT_USER
,
szThemeManager
,
&
hKey
))
{
RegSetValueExW
(
hKey
,
L"ThemeActive"
,
0
,
REG_SZ
,
(
BYTE
*
)
szEnabled
,
sizeof
(
WCHAR
));
RegSetValueExW
(
hKey
,
L"ThemeActive"
,
0
,
REG_SZ
,
(
BYTE
*
)
L"0"
,
2
*
sizeof
(
WCHAR
));
RegCloseKey
(
hKey
);
}
UXTHEME_broadcast_msg
(
NULL
,
WM_THEMECHANGED
);
...
...
dlls/uxtheme/tests/system.c
View file @
50005fee
...
...
@@ -1260,7 +1260,6 @@ static void test_EnableTheming(void)
hr
=
EnableTheming
(
TRUE
);
ok
(
hr
==
S_OK
,
"EnableTheming failed, hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
!
IsThemeActive
(),
"Expected theming inactive.
\n
"
);
hr
=
EnableTheming
(
FALSE
);
...
...
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