Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
eb8eccbe
Commit
eb8eccbe
authored
Nov 09, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Fix a test failure.
pszAppName should not be changed as it's used in the loop to check if window application name is set.
parent
38d1002c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
msstyles.c
dlls/uxtheme/msstyles.c
+10
-14
No files found.
dlls/uxtheme/msstyles.c
View file @
eb8eccbe
...
...
@@ -1075,14 +1075,12 @@ PTHEME_CLASS MSSTYLES_OpenThemeClass(LPCWSTR pszAppName, LPCWSTR pszClassList, U
start
=
end
+
1
;
parse_app_class_name
(
buf
,
szAppName
,
szClassName
);
if
(
szAppName
[
0
])
{
/* If the application class is already set then fail */
if
(
pszAppName
)
return
NULL
;
pszAppName
=
szAppName
;
}
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
pszAppName
,
szClassName
);
/* If the window application name is set then fail */
if
(
szAppName
[
0
]
&&
pszAppName
)
return
NULL
;
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
szAppName
[
0
]
?
szAppName
:
pszAppName
,
szClassName
);
/* Fall back to default class if the specified subclass is not found */
if
(
!
cls
)
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
NULL
,
szClassName
);
...
...
@@ -1090,14 +1088,12 @@ PTHEME_CLASS MSSTYLES_OpenThemeClass(LPCWSTR pszAppName, LPCWSTR pszClassList, U
}
if
(
!
cls
&&
*
start
)
{
parse_app_class_name
(
start
,
szAppName
,
szClassName
);
if
(
szAppName
[
0
])
{
/* If the application class is already set then fail */
if
(
pszAppName
)
return
NULL
;
pszAppName
=
szAppName
;
}
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
pszAppName
,
szClassName
);
/* If the window application name is set then fail */
if
(
szAppName
[
0
]
&&
pszAppName
)
return
NULL
;
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
szAppName
[
0
]
?
szAppName
:
pszAppName
,
szClassName
);
/* Fall back to default class if the specified subclass is not found */
if
(
!
cls
)
cls
=
MSSTYLES_FindClass
(
tfActiveTheme
,
NULL
,
szClassName
);
}
...
...
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