uxtheme: Assign to struct instead of using CopyMemory.
This commit is contained in:
parent
e8aebfcb4b
commit
65dd1578e6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue