Andrew Talbot : uxtheme: Assign to struct instead of using CopyMemory.
Alexandre Julliard
julliard at winehq.org
Mon Mar 31 09:15:22 CDT 2008
Module: wine
Branch: master
Commit: 65dd1578e695aa140ca4858e94201fd8d235e0c4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=65dd1578e695aa140ca4858e94201fd8d235e0c4
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Mar 29 11:37:23 2008 +0000
uxtheme: Assign to struct instead of using CopyMemory.
---
dlls/uxtheme/metric.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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-cvs
mailing list