uxtheme: Assign to struct instead of using CopyMemory.

This commit is contained in:
Andrew Talbot 2008-03-29 11:37:23 +00:00 committed by Alexandre Julliard
parent e8aebfcb4b
commit 65dd1578e6
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ HRESULT WINAPI GetThemeSysFont(HTHEME hTheme, int iFontID, LOGFONTW *plf)
case TMT_MSGBOXFONT: font = &ncm.lfMessageFont; break;
default: FIXME("Unknown FontID: %d\n", iFontID); break;
}
if(font) CopyMemory(plf, font, sizeof(LOGFONTW));
if(font) *plf = *font;
else hr = STG_E_INVALIDPARAMETER;
}
return hr;