mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
[UXTHEME] Apply Wine commit 997e204 by Louis Lenders: Fix CloseThemeData with invalid handle value. CORE-11368
svn path=/trunk/; revision=71901
This commit is contained in:
parent
94cda5e077
commit
2a753b8ad3
1 changed files with 1 additions and 1 deletions
|
@ -878,7 +878,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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue