http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8aebfc
)
uxtheme: Assign to struct instead of using CopyMemory.
author
Andrew Talbot
<andrew.talbot@talbotville.com>
Sat, 29 Mar 2008 11:37:23 +0000
(11:37 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 31 Mar 2008 10:50:33 +0000
(12:50 +0200)
dlls/uxtheme/metric.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/uxtheme/metric.c
b/dlls/uxtheme/metric.c
index 1f8b069e9f586d03f0060a8e02ad07e78b78ea0a..6f8519eb2c2224afac59cf6d315830bde54ed7de 100644
(file)
--- 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;