uxtheme: Assign to struct instead of using CopyMemory
Andrew Talbot
andrew.talbot at talbotville.com
Sat Mar 29 06:37:23 CDT 2008
Changelog:
uxtheme: Assign to struct instead of using CopyMemory.
diff --git a/dlls/uxtheme/metric.c b/dlls/uxtheme/metric.c
index 1f8b069..6f8519e 100644
--- a/dlls/uxtheme/metric.c
+++ b/dlls/uxtheme/metric.c
@@ -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;
More information about the wine-patches
mailing list