Commit 2b217ea9 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

comdlg32: Assign to structs instead of using memcpy.

parent 8349a9f5
......@@ -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++)
{
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment