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
997e2046
Commit
997e2046
authored
Feb 12, 2016
by
Louis Lenders
Committed by
Alexandre Julliard
Feb 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uxtheme: Fix CloseThemeData with invalid handle value.
Signed-off-by:
Louis Lenders
<
xerox.xerox2000x@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d070c263
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
system.c
dlls/uxtheme/system.c
+1
-1
system.c
dlls/uxtheme/tests/system.c
+2
-0
No files found.
dlls/uxtheme/system.c
View file @
997e2046
...
...
@@ -746,7 +746,7 @@ void WINAPI SetThemeAppProperties(DWORD dwFlags)
HRESULT
WINAPI
CloseThemeData
(
HTHEME
hTheme
)
{
TRACE
(
"(%p)
\n
"
,
hTheme
);
if
(
!
hTheme
)
if
(
!
hTheme
||
hTheme
==
INVALID_HANDLE_VALUE
)
return
E_HANDLE
;
return
MSSTYLES_CloseThemeClass
(
hTheme
);
}
...
...
dlls/uxtheme/tests/system.c
View file @
997e2046
...
...
@@ -541,6 +541,8 @@ static void test_CloseThemeData(void)
hRes
=
pCloseThemeData
(
NULL
);
ok
(
hRes
==
E_HANDLE
,
"Expected E_HANDLE, got 0x%08x
\n
"
,
hRes
);
hRes
=
pCloseThemeData
(
INVALID_HANDLE_VALUE
);
ok
(
hRes
==
E_HANDLE
,
"Expected E_HANDLE, got 0x%08x
\n
"
,
hRes
);
}
START_TEST
(
system
)
...
...
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