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
3f292a0e
Commit
3f292a0e
authored
Jun 21, 2021
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Jun 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Check window handle for SetWindowTheme().
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
16e2a9ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
system.c
dlls/uxtheme/system.c
+4
-0
system.c
dlls/uxtheme/tests/system.c
+0
-1
No files found.
dlls/uxtheme/system.c
View file @
3f292a0e
...
...
@@ -690,6 +690,10 @@ HRESULT WINAPI SetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName,
HRESULT
hr
;
TRACE
(
"(%p,%s,%s)
\n
"
,
hwnd
,
debugstr_w
(
pszSubAppName
),
debugstr_w
(
pszSubIdList
));
if
(
!
hwnd
)
return
E_HANDLE
;
hr
=
UXTHEME_SetWindowProperty
(
hwnd
,
atSubAppName
,
pszSubAppName
);
if
(
SUCCEEDED
(
hr
))
hr
=
UXTHEME_SetWindowProperty
(
hwnd
,
atSubIdList
,
pszSubIdList
);
...
...
dlls/uxtheme/tests/system.c
View file @
3f292a0e
...
...
@@ -104,7 +104,6 @@ static void test_SetWindowTheme(void)
HWND
hWnd
;
hRes
=
SetWindowTheme
(
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
hRes
==
E_HANDLE
,
"Expected E_HANDLE, got 0x%08x
\n
"
,
hRes
);
/* Only do the bare minimum to get a valid hwnd */
...
...
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