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
87f1a380
Commit
87f1a380
authored
Nov 02, 2023
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Move fall back to default class to MSSTYLES_OpenThemeClass().
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
992d197d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
msstyles.c
dlls/uxtheme/msstyles.c
+7
-0
system.c
dlls/uxtheme/system.c
+0
-4
system.c
dlls/uxtheme/tests/system.c
+0
-2
No files found.
dlls/uxtheme/msstyles.c
View file @
87f1a380
...
...
@@ -1079,6 +1079,10 @@ PTHEME_CLASS MSSTYLES_OpenThemeClass(LPCWSTR pszAppName, LPCWSTR pszClassList, U
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
szAppName
,
szClassName
);
else
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
pszAppName
,
szClassName
);
/* Fall back to default class if the specified subclass is not found */
if
(
!
cls
)
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
NULL
,
szClassName
);
if
(
cls
)
break
;
}
if
(
!
cls
&&
*
start
)
{
...
...
@@ -1087,6 +1091,9 @@ PTHEME_CLASS MSSTYLES_OpenThemeClass(LPCWSTR pszAppName, LPCWSTR pszClassList, U
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
szAppName
,
szClassName
);
else
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
pszAppName
,
szClassName
);
/* Fall back to default class if the specified subclass is not found */
if
(
!
cls
)
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
NULL
,
szClassName
);
}
if
(
cls
)
{
TRACE
(
"Opened app %s, class %s from list %s
\n
"
,
debugstr_w
(
cls
->
szAppName
),
debugstr_w
(
cls
->
szClassName
),
debugstr_w
(
pszClassList
));
...
...
dlls/uxtheme/system.c
View file @
87f1a380
...
...
@@ -641,10 +641,6 @@ static HTHEME open_theme_data(HWND hwnd, LPCWSTR pszClassList, DWORD flags, UINT
if
(
pszUseClassList
)
hTheme
=
MSSTYLES_OpenThemeClass
(
pszAppName
,
pszUseClassList
,
dpi
);
/* Fall back to default class if the specified subclass is not found */
if
(
!
hTheme
)
hTheme
=
MSSTYLES_OpenThemeClass
(
NULL
,
pszUseClassList
,
dpi
);
}
if
(
IsWindow
(
hwnd
))
SetPropW
(
hwnd
,
(
LPCWSTR
)
MAKEINTATOM
(
atWindowTheme
),
hTheme
);
...
...
dlls/uxtheme/tests/system.c
View file @
87f1a380
...
...
@@ -583,9 +583,7 @@ static void test_OpenThemeData(void)
SetLastError
(
0xdeadbeef
);
hTheme
=
OpenThemeData
(
hWnd
,
L"deadbeef::treeview;dead::beef"
);
todo_wine
ok
(
hTheme
!=
NULL
,
"OpenThemeData() failed
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got 0x%08lx
\n
"
,
GetLastError
());
CloseThemeData
(
hTheme
);
...
...
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