Module: wine Branch: master Commit: 2b217ea9afb873185839cfcebe6b19f9f57e5e52 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2b217ea9afb873185839cfcebe...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Fri Feb 29 15:54:56 2008 +0000
comdlg32: Assign to structs instead of using memcpy.
---
dlls/comdlg32/fontdlg.c | 2 +- dlls/comdlg32/printdlg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c index deefe8f..899cfe4 100644 --- a/dlls/comdlg32/fontdlg.c +++ b/dlls/comdlg32/fontdlg.c @@ -374,7 +374,7 @@ static int SetFontStylesToCombo2(HWND hwnd, HDC hdc, const LOGFONTW *lplf) int i,j; LOGFONTW lf;
- memcpy(&lf, lplf, sizeof(LOGFONTW)); + lf = *lplf;
for (i=0;i<FSTYLES;i++) { diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c index c048297..73588b5 100644 --- a/dlls/comdlg32/printdlg.c +++ b/dlls/comdlg32/printdlg.c @@ -2850,7 +2850,7 @@ PRINTDLG_PS_ChangePaperPrev(const PageSetupDataA *pda) MoveWindow(GetDlgItem(pda->hDlg, rct2), x+width, y+SHADOW, SHADOW, height, FALSE); MoveWindow(GetDlgItem(pda->hDlg, rct3), x+SHADOW, y+height, width, SHADOW, FALSE); MoveWindow(GetDlgItem(pda->hDlg, rct1), x, y, width, height, FALSE); - memcpy(&rtTmp, &pda->rtDrawRect, sizeof(RECT)); + rtTmp = pda->rtDrawRect; rtTmp.right += SHADOW; rtTmp.bottom += SHADOW; #undef SHADOW