msvfw32: Assign to structs instead of using memcpy.

This commit is contained in:
Andrew Talbot 2008-03-06 22:33:56 +00:00 committed by Alexandre Julliard
parent 6661f43438
commit 0d80791371
1 changed files with 2 additions and 2 deletions

View File

@ -753,7 +753,7 @@ static BOOL enum_compressors(HWND list, COMPVARS *pcv, BOOL enum_all)
idx = SendMessageW(list, CB_ADDSTRING, 0, (LPARAM)icinfo.szDescription); idx = SendMessageW(list, CB_ADDSTRING, 0, (LPARAM)icinfo.szDescription);
ic = HeapAlloc(GetProcessHeap(), 0, sizeof(struct codec_info)); ic = HeapAlloc(GetProcessHeap(), 0, sizeof(struct codec_info));
memcpy(&ic->icinfo, &icinfo, sizeof(ICINFO)); ic->icinfo = icinfo;
ic->hic = hic; ic->hic = hic;
SendMessageW(list, CB_SETITEMDATA, idx, (LPARAM)ic); SendMessageW(list, CB_SETITEMDATA, idx, (LPARAM)ic);
} }
@ -1449,7 +1449,7 @@ BOOL VFWAPI ICSeqCompressFrameStart(PCOMPVARS pc, LPBITMAPINFO lpbiIn)
if (!pc->lpbiIn) if (!pc->lpbiIn)
return FALSE; return FALSE;
memcpy(pc->lpbiIn, lpbiIn, sizeof(BITMAPINFO)); *pc->lpbiIn = *lpbiIn;
pc->lpBitsPrev = HeapAlloc(GetProcessHeap(), 0, pc->lpbiIn->bmiHeader.biSizeImage); pc->lpBitsPrev = HeapAlloc(GetProcessHeap(), 0, pc->lpbiIn->bmiHeader.biSizeImage);
if (!pc->lpBitsPrev) if (!pc->lpBitsPrev)
{ {