Make GetThemeMargins() return default values (0 margin) if the
function does not succeed.
This commit is contained in:
parent
8873d90f36
commit
1621ff4a44
|
@ -225,6 +225,7 @@ HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId,
|
|||
PTHEME_PROPERTY tp;
|
||||
|
||||
TRACE("(%d, %d, %d)\n", iPartId, iStateId, iPropId);
|
||||
memset (pMargins, 0, sizeof (MARGINS));
|
||||
if(!hTheme)
|
||||
return E_HANDLE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue