Skip to content
Snippets Groups Projects
Commit 399842b1 authored by Kevin Koltzau's avatar Kevin Koltzau Committed by Alexandre Julliard
Browse files

Fix crash when no theme is set and application ignores errors.

parent e5013299
Branches
Tags
No related merge requests found
......@@ -405,6 +405,10 @@ HRESULT WINAPI HitTestThemeBackground(HTHEME hTheme, HDC hdc, int iPartId,
BOOL WINAPI IsThemePartDefined(HTHEME hTheme, int iPartId, int iStateId)
{
TRACE("(%p,%d,%d)\n", hTheme, iPartId, iStateId);
if(!hTheme) {
SetLastError(E_HANDLE);
return FALSE;
}
if(MSSTYLES_FindPartState(hTheme, iPartId, iStateId, NULL))
return TRUE;
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment