Make GetThemeMargins() return default values (0 margin) if the

function does not succeed.
This commit is contained in:
Frank Richter 2005-07-27 15:15:09 +00:00 committed by Alexandre Julliard
parent 8873d90f36
commit 1621ff4a44
1 changed files with 1 additions and 0 deletions

View File

@ -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;